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 > Algoritmi e strutture dati > Progetto "FACCIALIBRO"
Pages (28): « First ... « 11 12 13 14 [15] 16 17 18 19 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
iuz-lab
.amico.

User info:
Registered: Feb 2006
Posts: 38 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 7:09:25 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

per usare switch con i token puoi fare una cosa del genere..
(non guardare i goto :-) e nemmeno le linee DPRINTF :-) )

code:
struct command *parse (char *line, struct command *cmd) { cmd->w0 = cmd->w1 = cmd->w2 = NULL; DPRINTF(DPARSER, "----- get w0"); cmd->w0 = s_strtok(line, BLK); if (cmd->w0 == NULL) { goto ret_inv_cmd; } DPRINTF(DPARSER, "----- get w1"); cmd->w1 = s_strtok(NULL, BLK); if (cmd->w1 == NULL) { goto inv_cmd0; } if (strlen(cmd->w1) != 1) { goto inv_cmd1; } switch (cmd->w1[0]) { case 'p': cmd->action = SYS_LS_USERS; goto sys_cmd; ... ... ...


certo vorrei dire.. ma al 17 febbraio sei ancora alle prese con il parser?!? tra tutti siamo proprio messi bene :-D

16-02-2009 23:38
Click Here to See the Profile for iuz-lab Click here to Send iuz-lab a Private Message Find more posts by iuz-lab Add iuz-lab to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
iuz-lab
.amico.

User info:
Registered: Feb 2006
Posts: 38 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 7:09:25 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by poi_1969
State attenti alle indicazioni di iuz-lab, a volte esce fuori tema.


ma stai bono brodo..

questi forum dovrebbero essere off-limits per gli analfabeti digitali :-D

admin nimda

16-02-2009 23:41
Click Here to See the Profile for iuz-lab Click here to Send iuz-lab a Private Message Find more posts by iuz-lab Add iuz-lab to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
hyperion
.illuminato.

User info:
Registered: Oct 2007
Posts: 171 (0.03 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 3 Days, 12:37:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by iuz-lab
ma stai bono brodo..

questi forum dovrebbero essere off-limits per gli analfabeti digitali :-D

admin nimda


ho risolto con una strcpy del token....grazie!

17-02-2009 08:56
Click Here to See the Profile for hyperion Click here to Send hyperion a Private Message Find more posts by hyperion Add hyperion to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gehur
.grande:maestro.

User info:
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

allora spero sia l'ultima chiarimento per sto grado di separazione
esempio:
profilo------------amici-----------------cammino da a->e
a-------------------b m l d--------------ris:--a->d->c->f->e-----grado 4
b-------------------a m n o d
c-------------------d z f
d-------------------a b c
e--------------------x y z q f
f--------------------c e

è tutto corretto??

17-02-2009 10:27
Click Here to See the Profile for Gehur Click here to Send Gehur a Private Message Find more posts by Gehur Add Gehur to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bloom
.illuminato.

User info:
Registered: May 2006
Posts: 229 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 3:14:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Gehur
allora spero sia l'ultima chiarimento per sto grado di separazione
esempio:
profilo------------amici-----------------cammino da a->e
a-------------------b m l d--------------ris:--a->d->c->f->e-----grado 4
b-------------------a m n o d
c-------------------d z f
d-------------------a b c
e--------------------x y z q f
f--------------------c e

è tutto corretto??


Sembrerebbe di si
Ma non sono sicura

17-02-2009 10:33
Click Here to See the Profile for Bloom Click here to Send Bloom a Private Message Find more posts by Bloom Add Bloom to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Joy88
.consigliere.

User info:
Registered: Jan 2008
Posts: 101 (0.02 al dì)
Location: ~Milano
Corso: Informatica
Anno:
Time Online: 1 Day, 10:27:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ieri sono andata dal prof.. risultato: devo rifarlo praticamente da capo..
voi avete usato alberi binari o alberi qualsiasi??? x' ho visto che in quasi tutti i progetti usano alberi rb....

__________________
"Amor, ch’a nullo amato amar perdona, mi prese del costui piacer sì forte che, come vedi, ancor non m’abbandona."

*Dante*

17-02-2009 10:36
Click Here to See the Profile for Joy88 Click here to Send Joy88 a Private Message Find more posts by Joy88 Add Joy88 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bloom
.illuminato.

User info:
Registered: May 2006
Posts: 229 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 3:14:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Come lo avevi fatto?Io ho utilizzato tutti rb e una lista di adiacenza

17-02-2009 10:38
Click Here to See the Profile for Bloom Click here to Send Bloom a Private Message Find more posts by Bloom Add Bloom to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
hyperion
.illuminato.

User info:
Registered: Oct 2007
Posts: 171 (0.03 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 3 Days, 12:37:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Joy88
Ieri sono andata dal prof.. risultato: devo rifarlo praticamente da capo..
voi avete usato alberi binari o alberi qualsiasi??? x' ho visto che in quasi tutti i progetti usano alberi rb....


rifarlo??!e perchè mai....?

17-02-2009 10:38
Click Here to See the Profile for hyperion Click here to Send hyperion a Private Message Find more posts by hyperion Add hyperion to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gehur
.grande:maestro.

User info:
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ok bloom, mi fido:D

Joy88 ti ha detto che devi rifarlo tutto!!! come mai?

Last edited by Gehur on 17-02-2009 at 10:41

17-02-2009 10:39
Click Here to See the Profile for Gehur Click here to Send Gehur a Private Message Find more posts by Gehur Add Gehur to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Joy88
.consigliere.

User info:
Registered: Jan 2008
Posts: 101 (0.02 al dì)
Location: ~Milano
Corso: Informatica
Anno:
Time Online: 1 Day, 10:27:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io tutto con le liste..
mi è stato risp che non è efficiente..
Anche se non mi sembrava fosse richiesto quello + efficiente..
La risp è stata: "..non è un esame di programmazione, ma di algoritmi."
-_-"

__________________
"Amor, ch’a nullo amato amar perdona, mi prese del costui piacer sì forte che, come vedi, ancor non m’abbandona."

*Dante*

17-02-2009 10:41
Click Here to See the Profile for Joy88 Click here to Send Joy88 a Private Message Find more posts by Joy88 Add Joy88 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bloom
.illuminato.

User info:
Registered: May 2006
Posts: 229 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 3:14:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Joy88
io tutto con le liste..
mi è stato risp che non è efficiente..
Anche se non mi sembrava fosse richiesto quello + efficiente..
La risp è stata: "..non è un esame di programmazione, ma di algoritmi."
-_-"


Cavolo mi dispiace!!!!

17-02-2009 10:42
Click Here to See the Profile for Bloom Click here to Send Bloom a Private Message Find more posts by Bloom Add Bloom to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Joy88
.consigliere.

User info:
Registered: Jan 2008
Posts: 101 (0.02 al dì)
Location: ~Milano
Corso: Informatica
Anno:
Time Online: 1 Day, 10:27:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Quindi adesso ci penso 50 volte prima di prendere la decisione sulla struttura da utilizzare..!!!
L'unica cosa è che ho buttato via 2 settimane di lavoro x niente..

__________________
"Amor, ch’a nullo amato amar perdona, mi prese del costui piacer sì forte che, come vedi, ancor non m’abbandona."

*Dante*

17-02-2009 10:43
Click Here to See the Profile for Joy88 Click here to Send Joy88 a Private Message Find more posts by Joy88 Add Joy88 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
hyperion
.illuminato.

User info:
Registered: Oct 2007
Posts: 171 (0.03 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 3 Days, 12:37:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Bloom
Cavolo mi dispiace!!!!


anche a me!capisco la fatica e l'impegno che uno ci mette per realizzare un progetto del genere!!e vabbè che è un esame di algoritmi ma allora almeno l'avrei fatto fare in java cosi risparmi il 90% dei problemi sulla realizzazione...derivati dalla gestione della memoria puntatori ecc ecc.!!almeno ci si concentra sulla parte implementativa degli algo studiati anzichè perdere troppo tempo su C in sè!

17-02-2009 10:44
Click Here to See the Profile for hyperion Click here to Send hyperion a Private Message Find more posts by hyperion Add hyperion to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bloom
.illuminato.

User info:
Registered: May 2006
Posts: 229 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 3:14:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Joy88
Quindi adesso ci penso 50 volte prima di prendere la decisione sulla struttura da utilizzare..!!!
L'unica cosa è che ho buttato via 2 settimane di lavoro x niente..

No dai non dire così....ora sei una maga delle liste!Una specie di Guru

17-02-2009 10:45
Click Here to See the Profile for Bloom Click here to Send Bloom a Private Message Find more posts by Bloom Add Bloom to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gehur
.grande:maestro.

User info:
Registered: Apr 2006
Posts: 519 (0.07 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 3 Days, 0:41:42 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

aaaaaaaa, be si, in effetti un'implementaizone solo con le liste non è adeguata, però ti poteva far passare col minimo..

be potresti provare a lavorare con tabelle hash, in fondo sono array di liste (più o meno), se se in gamba dovresti riuscire ad aggiustarlo in 1 giorno

17-02-2009 10:45
Click Here to See the Profile for Gehur Click here to Send Gehur a Private Message Find more posts by Gehur Add Gehur to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 02:29.    Post New Thread    Post A Reply
Pages (28): « First ... « 11 12 13 14 [15] 16 17 18 19 » ... 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.065 seconds (67.44% PHP - 32.56% MySQL) con 24 query.