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 A - F > Fondamenti di architettura e programmazione > [Laboratorio] Es. x il 28 - 11
Pages (7): « 1 2 3 4 [5] 6 7 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
ellegi
.powerbook.

User info:
Registered: Sep 2003
Posts: 185 (0.02 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: Terzo (1° turno)
Time Online: 1 Day, 21:10:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io volevo solo capire il meccanismo e i metodi da usare per l'esercizio Statistica Frequenze !!! :(

__________________
"L'ossessione è la fonte perpetua del genio e della follia"

27-11-2003 17:41
Click Here to See the Profile for ellegi Click Here to See the Blog of ellegi Click here to Send ellegi a Private Message Find more posts by ellegi Add ellegi to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Cello81
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 1673 (0.21 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: Fuori Corso
Time Online: 16 Days, 5:58:17 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

A chi lo dici!
Non c'è nessuno che sappia fare il terzo esercizio?

Io sono in alto mare!

:?

27-11-2003 17:54
Click Here to See the Profile for Cello81 Click here to Send Cello81 a Private Message Find more posts by Cello81 Add Cello81 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ellegi
.powerbook.

User info:
Registered: Sep 2003
Posts: 185 (0.02 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: Terzo (1° turno)
Time Online: 1 Day, 21:10:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

QUALCUNO CI AIUTIIIIIIIIIIIIIIIIIIII !!!!

__________________
"L'ossessione è la fonte perpetua del genio e della follia"

27-11-2003 17:57
Click Here to See the Profile for ellegi Click Here to See the Blog of ellegi Click here to Send ellegi a Private Message Find more posts by ellegi Add ellegi to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
EagleSpirit
.consigliere.

User info:
Registered: Oct 2003
Posts: 127 (0.02 al dì)
Location: VA
Corso:
Anno:
Time Online: 8 Days, 6:36:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

1. inizializzazione canali, variabili ed array
2. inserimento stringa
3. StringTokenizer(stringa, " ,.")
4. Ricerca delle parole e riempimento array (for e if)
5. Stampa array dizionario[i] + frequenze[i]

27-11-2003 18:18
Click Here to See the Profile for EagleSpirit Click here to Send EagleSpirit a Private Message Find more posts by EagleSpirit Add EagleSpirit to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.28 al dì)
Location: Cernusco sul Naviglio!
Corso: Digital Communication!
Anno: Secondo+Primo arretrato!
Time Online: 9 Days, 0:40:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

eagle...io non ho capito che devo fare nei cicli for iniziali!!!!!!

io ho fatto:
final int max = 2000;
}//Fine Ciclo for

__________________
"Il semplice colore, non viziato dal significato e non legato ad una forma definita, può parlare all'anima, in un migliaio di modi diversi.....Oscar Wilde " ......GIGI D'AGOSTINO - FORREST GUMP SUITE



Last edited by yoruno on 06-12-2005 at 12:53

27-11-2003 18:30
Click Here to See the Profile for gabry_deejay Click Here to See the Blog of gabry_deejay Click here to Send gabry_deejay a Private Message Find more posts by gabry_deejay Add gabry_deejay to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
EagleSpirit
.consigliere.

User info:
Registered: Oct 2003
Posts: 127 (0.02 al dì)
Location: VA
Corso:
Anno:
Time Online: 8 Days, 6:36:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by gabry_deejay
eagle...io non ho capito che devo fare nei cicli for iniziali!!!!!!

io ho fatto:


puoi benissimo eliminare la prima parte
fai subito con StringTokenizer mettendo come delimitatori " ,."
i 2 vettori dimensionali entrambi a 2000

Last edited by yoruno on 06-12-2005 at 12:53

27-11-2003 18:39
Click Here to See the Profile for EagleSpirit Click here to Send EagleSpirit a Private Message Find more posts by EagleSpirit Add EagleSpirit to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.28 al dì)
Location: Cernusco sul Naviglio!
Corso: Digital Communication!
Anno: Secondo+Primo arretrato!
Time Online: 9 Days, 0:40:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

devo eliminare...... dal ciclo a fine ciclo ??????

__________________
"Il semplice colore, non viziato dal significato e non legato ad una forma definita, può parlare all'anima, in un migliaio di modi diversi.....Oscar Wilde " ......GIGI D'AGOSTINO - FORREST GUMP SUITE



27-11-2003 18:52
Click Here to See the Profile for gabry_deejay Click Here to See the Blog of gabry_deejay Click here to Send gabry_deejay a Private Message Find more posts by gabry_deejay Add gabry_deejay to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.28 al dì)
Location: Cernusco sul Naviglio!
Corso: Digital Communication!
Anno: Secondo+Primo arretrato!
Time Online: 9 Days, 0:40:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

[]
Così??????????

__________________
"Il semplice colore, non viziato dal significato e non legato ad una forma definita, può parlare all'anima, in un migliaio di modi diversi.....Oscar Wilde " ......GIGI D'AGOSTINO - FORREST GUMP SUITE



Last edited by yoruno on 06-12-2005 at 12:52

27-11-2003 19:03
Click Here to See the Profile for gabry_deejay Click Here to See the Blog of gabry_deejay Click here to Send gabry_deejay a Private Message Find more posts by gabry_deejay Add gabry_deejay to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.28 al dì)
Location: Cernusco sul Naviglio!
Corso: Digital Communication!
Anno: Secondo+Primo arretrato!
Time Online: 9 Days, 0:40:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

qualcuno mi aiutiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii

__________________
"Il semplice colore, non viziato dal significato e non legato ad una forma definita, può parlare all'anima, in un migliaio di modi diversi.....Oscar Wilde " ......GIGI D'AGOSTINO - FORREST GUMP SUITE



27-11-2003 19:18
Click Here to See the Profile for gabry_deejay Click Here to See the Blog of gabry_deejay Click here to Send gabry_deejay a Private Message Find more posts by gabry_deejay Add gabry_deejay to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
foolish
bleak

User info:
Registered: Oct 2003
Posts: 3585 (0.44 al dì)
Location:
Corso:
Anno:
Time Online: 36 Days, 7:28:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by gabry_deejay


:nono:

il costruttore

StringTokenizer(string a,string b)

vuole come argomenti due string. Quindi inserirgli come argomento una StringBuffer è "logicamente" sbagliato per il compilatore.
QUINDI :
Salva il tuo StringBuffer in una stringa temporanea ed utilizza quest'ultima come argomento del costruttore.

String zibbi = new String(frase);

Ok?

__________________
The only way to discover the limits of the possible is to go beyond them into the impossible.
Arthur C. Clarke.

Last edited by yoruno on 06-12-2005 at 12:52

27-11-2003 20:06
Click Here to See the Profile for foolish Click Here to See the Blog of foolish Click here to Send foolish a Private Message Find more posts by foolish Add foolish to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.28 al dì)
Location: Cernusco sul Naviglio!
Corso: Digital Communication!
Anno: Secondo+Primo arretrato!
Time Online: 9 Days, 0:40:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ok e adesso che faccio???????? Siamo a 1 birra e mezza!!!!!!

__________________
"Il semplice colore, non viziato dal significato e non legato ad una forma definita, può parlare all'anima, in un migliaio di modi diversi.....Oscar Wilde " ......GIGI D'AGOSTINO - FORREST GUMP SUITE



27-11-2003 20:09
Click Here to See the Profile for gabry_deejay Click Here to See the Blog of gabry_deejay Click here to Send gabry_deejay a Private Message Find more posts by gabry_deejay Add gabry_deejay to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
foolish
bleak

User info:
Registered: Oct 2003
Posts: 3585 (0.44 al dì)
Location:
Corso:
Anno:
Time Online: 36 Days, 7:28:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by gabry_deejay
ok e adesso che faccio???????? Siamo a 1 birra e mezza!!!!!!


Lo StringTokenizer ha la capacità di renderti una alla volta i "frammenti" di stringa ceh vengono divisi dai caratteri delimitatori inseriti come secondo argomento. Noi questi frammenti li chiameremo PAROLE.

Fai un ciclo che preleva dallo StringTokenizer una PAROLA alla volta. questa parola verrà salvata in una stringa temporanea che verrà confrontata con le parole già presenti nell'array Dizionario.
Se la parola viene trovata verrà incrementata la frequenza relativa a quella frequenza (ha lo stesso indice) altrimenti questa parola verrà inserita alla fine dell'array Dizionario.

Alla fine di ciò stampi l''array Dizionario e Frequenza.

NB La prima parola è meglio inserirla in automatico nell'array Dizionario, per evitare casini in fase di execute. Per confrontare bisogna ricordarsi di utilizzare il metodo equals() e non "==" che sarebbe sbagliato.

__________________
The only way to discover the limits of the possible is to go beyond them into the impossible.
Arthur C. Clarke.

27-11-2003 20:16
Click Here to See the Profile for foolish Click Here to See the Blog of foolish Click here to Send foolish a Private Message Find more posts by foolish Add foolish to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.28 al dì)
Location: Cernusco sul Naviglio!
Corso: Digital Communication!
Anno: Secondo+Primo arretrato!
Time Online: 9 Days, 0:40:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ok ora vediamo se riesco...al massimo.....ti chiedo dopo altre delucidazioni ......

Siamo a una birretta.....ma grande a sto giro!!!!!!!!

Ti piaciono le franziskaner??????

__________________
"Il semplice colore, non viziato dal significato e non legato ad una forma definita, può parlare all'anima, in un migliaio di modi diversi.....Oscar Wilde " ......GIGI D'AGOSTINO - FORREST GUMP SUITE



27-11-2003 20:22
Click Here to See the Profile for gabry_deejay Click Here to See the Blog of gabry_deejay Click here to Send gabry_deejay a Private Message Find more posts by gabry_deejay Add gabry_deejay to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.28 al dì)
Location: Cernusco sul Naviglio!
Corso: Digital Communication!
Anno: Secondo+Primo arretrato!
Time Online: 9 Days, 0:40:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

foolish...ho dei problemi....dopo il for......
come faccio a dire Prendi il token e mettilo nel dizionario??????
Non ce la faccio più....e oggi è pure il mio compleanno diavolaccio!!!!!!!!!!!

__________________
"Il semplice colore, non viziato dal significato e non legato ad una forma definita, può parlare all'anima, in un migliaio di modi diversi.....Oscar Wilde " ......GIGI D'AGOSTINO - FORREST GUMP SUITE



27-11-2003 20:50
Click Here to See the Profile for gabry_deejay Click Here to See the Blog of gabry_deejay Click here to Send gabry_deejay a Private Message Find more posts by gabry_deejay Add gabry_deejay to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gabry_deejay
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 2284 (0.28 al dì)
Location: Cernusco sul Naviglio!
Corso: Digital Communication!
Anno: Secondo+Primo arretrato!
Time Online: 9 Days, 0:40:50 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

sono arrivato a questo punto:
StringBuffer frase = new StringBuffer (in.readLine("Inserire il testo da eleborare :"));
String appoggio = new String(frase);
StringTokenizer stk = new StringTokenizer (appoggio ," .,");
for (i=0;i<appoggio.length();i++){
??????????????????????????????????????

}

__________________
"Il semplice colore, non viziato dal significato e non legato ad una forma definita, può parlare all'anima, in un migliaio di modi diversi.....Oscar Wilde " ......GIGI D'AGOSTINO - FORREST GUMP SUITE



27-11-2003 20:53
Click Here to See the Profile for gabry_deejay Click Here to See the Blog of gabry_deejay Click here to Send gabry_deejay a Private Message Find more posts by gabry_deejay Add gabry_deejay to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 12:32.    Post New Thread    Post A Reply
Pages (7): « 1 2 3 4 [5] 6 7 »   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.104 seconds (66.03% PHP - 33.97% MySQL) con 25 query.