Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Programmazione > [PROGRAMMAZIONE] Help 2^ Progettino!!! A.A.04/05
Pages (38): « First ... « 25 26 27 28 [29] 30 31 32 33 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
LjL
.consigliere.

User info:
Registered: Dec 2003
Posts: 144 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Primo
Time Online: 16:25:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by mark
cmq, il metodo find sbaglio o è una lumaca ?

Il mio progetto, usando il file di esempio, si esegue in 13 secondi abbondanti. Ho un 166MHz.
Mi vien voglia di riscriverlo in C e vedere in quanto tempo si esegue (sotto il secondo, per me).

__________________
by LjL
ljlbox@tiscali.it
http://ljl.150m.com - appunti corsi

15-12-2003 15:55
Click Here to See the Profile for LjL Click here to Send LjL a Private Message Visit LjL's homepage! Find more posts by LjL Add LjL to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LjL
.consigliere.

User info:
Registered: Dec 2003
Posts: 144 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Primo
Time Online: 16:25:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by mark
ma che rabbia..........

io leggo:

public boolean equals(Occorrenze altra){
return ...............vero o falso...........;
}

Ma se io come argomento leggo (Occorrenze altra) mi viene in mente di passare a sto cavolo di metodo tutto l'oggetto per il confronto e non solo una sua parte; esempio: la stringa contenuta in esso.


Ma come cavolo si fa a capire quando è l'uno o l'altro caso ?

Scusa forse non ho seguito bene la discussione, ma nel metodo equals di Occorrenze uno deve prendere come argomento un Occorrenze (o un Occorrenze travestito da Object, a seconda), e dentro al metodo poi confrontare solo le stringhe e nient'altro.

Ma quello che il resto del mondo passa al metodo è semplicemente un Occorrenze.

__________________
by LjL
ljlbox@tiscali.it
http://ljl.150m.com - appunti corsi

15-12-2003 15:56
Click Here to See the Profile for LjL Click here to Send LjL a Private Message Visit LjL's homepage! Find more posts by LjL Add LjL to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LjL
.consigliere.

User info:
Registered: Dec 2003
Posts: 144 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Primo
Time Online: 16:25:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by gigidid
anche perchè per esempio, il metodo "equals" non è neanche detto che debba essere usato!

con questo mi riferisco alla storia:
1. crea una nuova occorrenza
2. cercala nella sequenza (qui casca l'asino....)
3. se la trovi incr. il cont. occ.
4. else aggiungila...

infatti, diciamo quindi che questi metodi li lascero' per rispettare la volontà del Grossi.

Scusa, e il punto 2 come lo fai senza equals()?
Anche se usi find() o qualche altra stregoneria di cui si è parlato, loro a loro volta useranno equals()... al limite compareTo()...

__________________
by LjL
ljlbox@tiscali.it
http://ljl.150m.com - appunti corsi

15-12-2003 15:59
Click Here to See the Profile for LjL Click here to Send LjL a Private Message Visit LjL's homepage! Find more posts by LjL Add LjL to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LjL
.consigliere.

User info:
Registered: Dec 2003
Posts: 144 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Primo
Time Online: 16:25:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by mark
appunto, è ben questo tipo di logica che mi sfugge

Bof, perché?
Riciclando un esempio di Pighizzini o Ferrari (chissiricorda), per sapere se due automobili sono la stessa basta sapere il numero di targa; del colore non frega niente, non solo perché è inutile controllarlo, ma perché il tizio potrebbe averla riverniciata nel frattempo.

Così come i nostri oggetti Occorrenze potrebbero aver cambiato numero di occorrenze nel frattempo, ma la stringa rimane sempre uguale e univoca (be', univoca solo se uno non ha sbagliato il progetto :-) ).

__________________
by LjL
ljlbox@tiscali.it
http://ljl.150m.com - appunti corsi

15-12-2003 16:01
Click Here to See the Profile for LjL Click here to Send LjL a Private Message Visit LjL's homepage! Find more posts by LjL Add LjL to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gianlucaxx
.simpatizzante.

User info:
Registered: May 2003
Posts: 19 (0.00 al dì)
Location: Milano
Corso: Informatica
Anno: 2
Time Online: 10:48:21 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Scusate ma come avete fatto con le parole apostrofate?

__________________
Teresina semplice, niente jolly e il cielo come limite!
(Jean Luc Picard)

15-12-2003 16:46
Click Here to See the Profile for gianlucaxx Click here to Send gianlucaxx a Private Message Find more posts by gianlucaxx Add gianlucaxx to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by gianlucaxx
Scusate ma come avete fatto con le parole apostrofate?


Dipende da cosa usi per quel metodo:

usi isLetter()? allora non dovresti avere problemi
usi StringTokenizer()? allora inserisci l'apostrofo tra i caratteri che dividono la parola..

15-12-2003 16:52
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Oracle
Matroide

User info:
Registered: Aug 2003
Posts: 368 (0.04 al dì)
Location:
Corso: informatica della comunicazione
Anno: oo
Time Online: 5 Days, 23:00:13 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao,
la versione di Java con la quale sviluppare deve essere alemeno una 1.4.1 come quella del CD ?

Non vorrei che il prof compilasse con una 1.3.x che NON HA alcuni metodi nella classe String.

Da qualche parte c'è scritto che versione utilizzare ???

__________________
Divide et impera

15-12-2003 17:59
Click Here to See the Profile for Oracle Click here to Send Oracle a Private Message Visit Oracle's homepage! Find more posts by Oracle Add Oracle to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
LjL
.consigliere.

User info:
Registered: Dec 2003
Posts: 144 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Primo
Time Online: 16:25:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Comunque ragazzi, ricordartevi che se siete a corto di idee efficienti nessuno vi impedisce di usare tanti bei stringa=stringa+carattereDaAggiungere in un ciclo...

__________________
by LjL
ljlbox@tiscali.it
http://ljl.150m.com - appunti corsi

15-12-2003 18:11
Click Here to See the Profile for LjL Click here to Send LjL a Private Message Visit LjL's homepage! Find more posts by LjL Add LjL to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gioe
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 521 (0.06 al dì)
Location: Piacenza
Corso: Informatica
Anno: 3
Time Online: 25 Days, 8:18:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io dovrei aver finito il progetto.... che faccio lo spedisco? nnnnnn ho sempre paura che c possa essere un caso che non ho considerato che mi dia esecuzione fallita....:(
Cosa faccio?

__________________
@~@~@~@~@~@~@~@~@~@

TIMEO DANAOS ET DONA FERENTES

@~@~@~@~@~@~@~@~@~@

15-12-2003 20:26
Click Here to See the Profile for Gioe Click here to Send Gioe a Private Message Find more posts by Gioe Add Gioe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Ina
.precettore.

User info:
Registered: Dec 2001
Posts: 96 (0.01 al dì)
Location: Verona
Corso: Informatica
Anno: quarto...della triennale!
Time Online: 21:28:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

invialo...e complimenti per esserci riuscito!!!
Pensa che il mio ancora non compila!!!

__________________
Prendi la vita e rincorrila senza pietà
come la volpe impaurita rincorre la sua libertà.
-TIMORIA-

15-12-2003 20:49
Click Here to See the Profile for Ina Click here to Send Ina a Private Message Find more posts by Ina Add Ina to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

GRRRRRRR stampa solo l'indice sto stronzoooooooooooo

__________________
Il Pega
www.pegasus83.com

15-12-2003 20:57
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Pegasus83
GRRRRRRR stampa solo l'indice sto stronzoooooooooooo



insisti, insisti ............

vai di debugger

15-12-2003 21:07
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

sto andando e sto riscrivendo un po' di roba

__________________
Il Pega
www.pegasus83.com

15-12-2003 21:10
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by mark
insisti, insisti ............

vai di debugger


hai un pm...

__________________
Il Pega
www.pegasus83.com

15-12-2003 21:14
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gioe
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 521 (0.06 al dì)
Location: Piacenza
Corso: Informatica
Anno: 3
Time Online: 25 Days, 8:18:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Secondo voi può l'indentazione essere settata a 0?

__________________
@~@~@~@~@~@~@~@~@~@

TIMEO DANAOS ET DONA FERENTES

@~@~@~@~@~@~@~@~@~@

15-12-2003 21:21
Click Here to See the Profile for Gioe Click here to Send Gioe a Private Message Find more posts by Gioe Add Gioe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 21:05.    Post New Thread    Post A Reply
Pages (38): « First ... « 25 26 27 28 [29] 30 31 32 33 » ... Last »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.119 seconds (43.18% PHP - 56.82% MySQL) con 24 query.