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 > Appello torelli giugno
Pages (7): « 1 [2] 3 4 5 6 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Chobeat
.illuminato.

User info:
Registered: Sep 2007
Posts: 241 (0.04 al dì)
Location: Alessandria
Corso: Informatica
Anno: 1
Time Online: 1 Day, 6:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Io non mi sono nemmeno posto il problema. Secondo me il fatto che non ci sia il .0 è totalmente irrilevante.

09-06-2011 17:42
Click Here to See the Profile for Chobeat Click here to Send Chobeat a Private Message Find more posts by Chobeat Add Chobeat to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Chobeat
.illuminato.

User info:
Registered: Sep 2007
Posts: 241 (0.04 al dì)
Location: Alessandria
Corso: Informatica
Anno: 1
Time Online: 1 Day, 6:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ho chiesto alla prof la questione dei float e ha detto che il .0 in realtà è più giusto con che senza.

Se proprio vuoi sbatterti a farlo, devi mettere %.*f

l'asterisco dice a printf di stampare con una precision definita in un parametro aggiuntivo (penso prima del numero da stampare, non ho provato). Quindi tu fai un if in cui valuti solo la parte decimale. Se è 0, nell'asterisco metti 0. se è maggiore, nell'asterisco metti 1 o 2 o quel che ti serve.

11-06-2011 11:54
Click Here to See the Profile for Chobeat Click here to Send Chobeat a Private Message Find more posts by Chobeat Add Chobeat to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
number15
.grande:maestro.

User info:
Registered: Nov 2005
Posts: 652 (0.10 al dì)
Location:
Corso:
Anno:
Time Online: 121 Days, 13:57:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Mi son rimbambito: come si gestisce l'input del comando a?
E' possibile con la scanf, leggere stringhe separate da | e salvarle nei rispettivi array?

__________________
Portale segnalazioni marchi-negozi di abbigliamento
http://www.ovojo.com

11-06-2011 12:28
Click Here to See the Profile for number15 Click here to Send number15 a Private Message Find more posts by number15 Add number15 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
xSharKMaNx
un gioco della follia

User info:
Registered: Sep 2007
Posts: 1477 (0.24 al dì)
Location:
Corso: F49
Anno: Laureato
Time Online: 10 Days, 17:15:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by number15
Mi son rimbambito: come si gestisce l'input del comando a?
E' possibile con la scanf, leggere stringhe separate da | e salvarle nei rispettivi array?


http://it.wikipedia.org/wiki/Strtok

__________________
Perché, mentre il manganello può sostituire il dialogo, le parole non perderanno mai il loro potere; perché esse sono il mezzo per giungere al significato, e per coloro che vorranno ascoltare, all'affermazione della verità. E la verità è che c'è qualcosa di terribilmente marcio in questo paese. (V)

I popoli non dovrebbero aver paura dei propri governi, sono i governi che dovrebbero aver paura dei popoli. (T.J)

11-06-2011 12:59
Click Here to See the Profile for xSharKMaNx Click here to Send xSharKMaNx a Private Message Find more posts by xSharKMaNx Add xSharKMaNx to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Chobeat
.illuminato.

User info:
Registered: Sep 2007
Posts: 241 (0.04 al dì)
Location: Alessandria
Corso: Informatica
Anno: 1
Time Online: 1 Day, 6:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

oh diamine. io l'ho fatto leggendo carattere per carattere e gestendo il flusso con degli if. lol... mi ero dimenbticato di strtok e il bello è che ho il link al reference nei bookmark da 8 mesi, cioè da quando a settembre mi dissi "cazzo devo ricordarmi di usare nel strtok" e campeggia nella mia barra di chrome da quel momento. non è servito a niente. lol

11-06-2011 13:05
Click Here to See the Profile for Chobeat Click here to Send Chobeat a Private Message Find more posts by Chobeat Add Chobeat to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
number15
.grande:maestro.

User info:
Registered: Nov 2005
Posts: 652 (0.10 al dì)
Location:
Corso:
Anno:
Time Online: 121 Days, 13:57:11 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Però quindi con fgets salvi tutto in un array e poi vai a dividere in token o si può fare al volo con la scanf?

Edit: ma non si può far niente con le regexp? Cioè dire alla scanf che al posto di usare lo spazio come separatore deve usare |

__________________
Portale segnalazioni marchi-negozi di abbigliamento
http://www.ovojo.com

Last edited by number15 on 11-06-2011 at 13:21

11-06-2011 13:06
Click Here to See the Profile for number15 Click here to Send number15 a Private Message Find more posts by number15 Add number15 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Chobeat
.illuminato.

User info:
Registered: Sep 2007
Posts: 241 (0.04 al dì)
Location: Alessandria
Corso: Informatica
Anno: 1
Time Online: 1 Day, 6:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ok ora posso finalmente dire che mi manca davvero solo l'ultima funzione. la funzione H è bastarda, ho dovuto fare un sacco di roba in più perché la condizione sulla posizione ti frega e farlo per tutti è ancora diverso. In compenso adesso è tutto compliant all'input della prof e resistente anche agli input errati.

12-06-2011 13:56
Click Here to See the Profile for Chobeat Click here to Send Chobeat a Private Message Find more posts by Chobeat Add Chobeat to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Chobeat
.illuminato.

User info:
Registered: Sep 2007
Posts: 241 (0.04 al dì)
Location: Alessandria
Corso: Informatica
Anno: 1
Time Online: 1 Day, 6:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

finito, non mi sembra vero. ampia grattata di palle, domani testo da capo tutto ma sembra essere tutto funzionante.

13-06-2011 19:41
Click Here to See the Profile for Chobeat Click here to Send Chobeat a Private Message Find more posts by Chobeat Add Chobeat to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
tonnata
.Speranzoso.

User info:
Registered: Apr 2010
Posts: 11 (0.00 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Chobeat anche io ho finito...Ma tutte queste difficoltà che tu hai trovato nell'ultima funzione io non le ho trovate e soprattutto non ho avuto bisogno di grafi...

13-06-2011 22:26
Click Here to See the Profile for tonnata Click here to Send tonnata a Private Message Find more posts by tonnata Add tonnata to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Chobeat
.illuminato.

User info:
Registered: Sep 2007
Posts: 241 (0.04 al dì)
Location: Alessandria
Corso: Informatica
Anno: 1
Time Online: 1 Day, 6:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

no ma infatti col senno di poi non è complicata e nemmeno io ho usato i grafi per quella. solamente che l'avevo ingegnerizzata dimenticando la parte ristretta ad un solo tipo di pubblicazione, che mandava a monte il sistema che avevo fatto per il caso normale.

13-06-2011 22:48
Click Here to See the Profile for Chobeat Click here to Send Chobeat a Private Message Find more posts by Chobeat Add Chobeat to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
tonnata
.Speranzoso.

User info:
Registered: Apr 2010
Posts: 11 (0.00 al dì)
Location:
Corso: Informatica
Anno:
Time Online: 3:06:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

la piu "complicata" secondo me é la C. Tu che dici? Hai già fatto la relazione?

13-06-2011 22:53
Click Here to See the Profile for tonnata Click here to Send tonnata a Private Message Find more posts by tonnata Add tonnata to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Chobeat
.illuminato.

User info:
Registered: Sep 2007
Posts: 241 (0.04 al dì)
Location: Alessandria
Corso: Informatica
Anno: 1
Time Online: 1 Day, 6:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

La relazione l'ho fatta ma devo rifare quella appunto della C perché l'ho implementata in maniera diversa da quanto previsto.

Io, a livello di tempo, ci ho messo di più a fare la H, ma semplicemente perché la C l'ho studiata meglio e mi ci son messo con metodo. Usando un BFS risulta abbastanza facile ma in effetti la parte tosta del progetto doveva essere quella. Resta il fatto che questo progetto fosse facilissimo rispetto a quelli passati, perlomeno la parte di luglio.

13-06-2011 23:21
Click Here to See the Profile for Chobeat Click here to Send Chobeat a Private Message Find more posts by Chobeat Add Chobeat to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
plafo
.illuminato.

User info:
Registered: Nov 2004
Posts: 236 (0.03 al dì)
Location: Milano
Corso: informatica
Anno: terzo
Time Online: 4 Days, 20:03:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
domanda

ciao,
sto facendo anch'io il progetto ma per l'appello di luglio, volevo chiedervi che strutture avete usato per i ricercatori e per le pubblicazioni; io stavo pensando di usare due alberi rb
che ne dite?
grazie

14-06-2011 09:34
Click Here to See the Profile for plafo Click here to Send plafo a Private Message Find more posts by plafo Add plafo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Chobeat
.illuminato.

User info:
Registered: Sep 2007
Posts: 241 (0.04 al dì)
Location: Alessandria
Corso: Informatica
Anno: 1
Time Online: 1 Day, 6:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non dovresti avere nemmeno dei dubbi.

14-06-2011 11:03
Click Here to See the Profile for Chobeat Click here to Send Chobeat a Private Message Find more posts by Chobeat Add Chobeat to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
plafo
.illuminato.

User info:
Registered: Nov 2004
Posts: 236 (0.03 al dì)
Location: Milano
Corso: informatica
Anno: terzo
Time Online: 4 Days, 20:03:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Chobeat
non dovresti avere nemmeno dei dubbi.



ok allora zero dubbi al riguardo :D
ma per i ricercatori come definisci la chiave quando ne inserisci uno nell'albero?

14-06-2011 13:25
Click Here to See the Profile for plafo Click here to Send plafo a Private Message Find more posts by plafo Add plafo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 08:02.    Post New Thread    Post A Reply
Pages (7): « 1 [2] 3 4 5 6 » ... 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.052 seconds (82.18% PHP - 17.82% MySQL) con 27 query.