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] Samegame3
Pages (10): « 1 2 3 4 [5] 6 7 8 9 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
kalbiz
.primate.

User info:
Registered: Oct 2002
Posts: 72 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno:
Time Online: 2 Days, 16:48:32 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao ecco la lista che genero dopo l'inserimento delle prime istruzioni ...
ho confrontato un paio di numeri e sembrano uguali se non fosse per la 0,0 blu v7 che io ho v9

(2,-1):blu - valore:8
(1,-1):blu - valore:2
(1,-2):rosso - valore:2
(2,-3):giallo - valore:2
(1,-3):rosso - valore:1
(0,-3):giallo - valore:6
(2,-4):giallo - valore:1
(1,-4):giallo - valore:6
(2,-5):giallo - valore:4
(1,-5):blu - valore:1
(1,-6):blu - valore:3
(0,-6):blu - valore:7
(0,1):blu - valore:1
(-2,1):giallo - valore:3
(-4,1):giallo - valore:1
(-2,0):rosso - valore:1
(-1,-1):blu - valore:6
(-2,-1):rosso - valore:7
(-3,-1):rosso - valore:4
(0,-2):rosso - valore:2
(-1,-2):blu - valore:2
(-2,-2):giallo - valore:1
(-3,-2):giallo - valore:2
(-4,-2):giallo - valore:3
(2,5):blu - valore:8
(1,5):blu - valore:2
(1,4):rosso - valore:2
(2,3):giallo - valore:2
(1,3):rosso - valore:1
(0,3):giallo - valore:6
(2,2):giallo - valore:1
(1,2):giallo - valore:6
(2,1):giallo - valore:4
(1,1):blu - valore:1
(1,0):blu - valore:3
(0,0):rosso - valore:9

27-02-2008 09:05
Click Here to See the Profile for kalbiz Click here to Send kalbiz a Private Message Find more posts by kalbiz Add kalbiz to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pirlo21
.arcimaestro.

User info:
Registered: Nov 2007
Posts: 352 (0.05 al dì)
Location:
Corso: informatica
Anno:
Time Online: 2 Days, 21:38:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

una domanda...ma la struttura che memorizza le biglie, si può dichiarare come variabile globale? perchè nel prototipo delle funzioni del prof non c'è nessun puntatore alla struttura dati, ma nel testo del progettino dice che le variabili globali vanno usate solo per informazioni di tipo globale

27-02-2008 09:35
Click Here to See the Profile for pirlo21 Click here to Send pirlo21 a Private Message Find more posts by pirlo21 Add pirlo21 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pirlo21
.arcimaestro.

User info:
Registered: Nov 2007
Posts: 352 (0.05 al dì)
Location:
Corso: informatica
Anno:
Time Online: 2 Days, 21:38:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

mi sono bloccato...la funzione insert mi sta diventando una cosa infinita e complicata, piena di controlli.. voi che struttura avete usato? non vorrei essermi complicato la situazione usando una lista di liste

27-02-2008 12:27
Click Here to See the Profile for pirlo21 Click here to Send pirlo21 a Private Message Find more posts by pirlo21 Add pirlo21 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Larios
.consigliere.

User info:
Registered: Oct 2007
Posts: 114 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 20:21:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

per le funzioni che dice di scrivere c'è scritto che sono anche implementabili liberamente, quindi puoi aggiungerci i parametri che ti servono, chi ha capito come me dia conferma pls

27-02-2008 13:57
Click Here to See the Profile for Larios Click here to Send Larios a Private Message Find more posts by Larios Add Larios to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
khelidan
.grande:maestro.

User info:
Registered: Jun 2003
Posts: 1196 (0.14 al dì)
Location: Milano
Corso: Informatica
Anno: Finito....
Time Online: 13 Days, 12:08:03: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

si lo dice nel testo che non sono da considerarsi come prototipi di funzione

__________________
Khelidan

27-02-2008 14:38
Click Here to See the Profile for khelidan Click here to Send khelidan a Private Message Find more posts by khelidan Add khelidan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pirlo21
.arcimaestro.

User info:
Registered: Nov 2007
Posts: 352 (0.05 al dì)
Location:
Corso: informatica
Anno:
Time Online: 2 Days, 21:38:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

aiutoooooooo
la funzione insert legge da file, quindi a meno che non siamo masochisti, la lettura è sequenziale e quindi anche l'inserimento deve essere sequenziale.. ma voi come avete implementato questa funzione e la struttura per contenere i dati??

io uso questa
struct elemento{
int x,
int y,
int valore,
char * colore,
struct elemento* nextx
struct elemento* next y
}

e mi sono bloccato perchè non riesco a effettuare tutti i collegamenti dei puntatori, senza contare che passando da una riga all'altra si salta anche una riga del file da dove si legge e quindi la cosa diventa impossibile

27-02-2008 14:48
Click Here to See the Profile for pirlo21 Click here to Send pirlo21 a Private Message Find more posts by pirlo21 Add pirlo21 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Larios
.consigliere.

User info:
Registered: Oct 2007
Posts: 114 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 20:21:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io non ho usato una struttura leggo scompongo e passo direttamente alle funzioni che devo lanciare poi rileggo ecc...

27-02-2008 16:33
Click Here to See the Profile for Larios Click here to Send Larios a Private Message Find more posts by Larios Add Larios to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pirlo21
.arcimaestro.

User info:
Registered: Nov 2007
Posts: 352 (0.05 al dì)
Location:
Corso: informatica
Anno:
Time Online: 2 Days, 21:38:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

:-S

27-02-2008 16:49
Click Here to See the Profile for pirlo21 Click here to Send pirlo21 a Private Message Find more posts by pirlo21 Add pirlo21 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
imperator
.consigliere.

User info:
Registered: Apr 2004
Posts: 146 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 5 Days, 6:58:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by imperator
io ho capito che se esiste già la biglia modifico semplicemente il contenuto della biglia...
se ho una biglia di coordinate xy, colore c, valore v, ed eseguo
biglia(xy, v1, c1)
allora cambio semplicemente v in v1 e c in c1...
questo è quello che penso e che ho capito



oggi ho chiesto ad aguzzoli, e mi ha confermato quanto detto sopra...

27-02-2008 17:15
Click Here to See the Profile for imperator Click here to Send imperator a Private Message Find more posts by imperator Add imperator to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
gicagi
.consigliere.

User info:
Registered: Jul 2006
Posts: 126 (0.02 al dì)
Location:
Corso: Informatica
Anno: II
Time Online: 2 Days, 22:18:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

la penso come larios

27-02-2008 17:18
Click Here to See the Profile for gicagi Click here to Send gicagi a Private Message Find more posts by gicagi Add gicagi to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
pirlo21
.arcimaestro.

User info:
Registered: Nov 2007
Posts: 352 (0.05 al dì)
Location:
Corso: informatica
Anno:
Time Online: 2 Days, 21:38:57 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

quindi voi non salvate le biglie???

27-02-2008 17:31
Click Here to See the Profile for pirlo21 Click here to Send pirlo21 a Private Message Find more posts by pirlo21 Add pirlo21 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
khelidan
.grande:maestro.

User info:
Registered: Jun 2003
Posts: 1196 (0.14 al dì)
Location: Milano
Corso: Informatica
Anno: Finito....
Time Online: 13 Days, 12:08:03: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by pirlo21
aiutoooooooo
la funzione insert legge da file, quindi a meno che non siamo masochisti, la lettura è sequenziale e quindi anche l'inserimento deve essere sequenziale.. ma voi come avete implementato questa funzione e la struttura per contenere i dati??

io uso questa
struct elemento{
int x,
int y,
int valore,
char * colore,
struct elemento* nextx
struct elemento* next y
}

e mi sono bloccato perchè non riesco a effettuare tutti i collegamenti dei puntatori, senza contare che passando da una riga all'altra si salta anche una riga del file da dove si legge e quindi la cosa diventa impossibile


Vuoi fare un grafo no?In che senso non riesci a sistemare i puntatori?Io ti consiglio di prendere spunto dal progetto daltonismo che è molto simile a questo

__________________
Khelidan

27-02-2008 18:43
Click Here to See the Profile for khelidan Click here to Send khelidan a Private Message Find more posts by khelidan Add khelidan to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Larios
.consigliere.

User info:
Registered: Oct 2007
Posts: 114 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 20:21:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged



giusto per essere sicuri mi confermate che 1 biglia equivale ad blocco? perchè fino a poco fa pensavo che un blocco avesse dovuto avere almeno 2 biglie connesse dello stesso colore :|

27-02-2008 18:48
Click Here to See the Profile for Larios Click here to Send Larios a Private Message Find more posts by Larios Add Larios to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
imperator
.consigliere.

User info:
Registered: Apr 2004
Posts: 146 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 5 Days, 6:58:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

un blocco è un insieme di biglie adiacenti dello stesso colore: ad esempio supponi di avere le seguenti biglie...
(3,4)=blu
(3,5)=blu
(2,4)=blu
(4,4)=blu

allora hai un blocco di colore blu composto da 4 biglie

27-02-2008 19:10
Click Here to See the Profile for imperator Click here to Send imperator a Private Message Find more posts by imperator Add imperator to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Larios
.consigliere.

User info:
Registered: Oct 2007
Posts: 114 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 20:21:35 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

quindi se avessi (1,3)=B(1,2)=B-->questo è un blocco (5,5)-->questa non sarebbe un blocco....


allora credo che i risultati di output del file di test sul pdf siano sbagliati in quanto 14 e 9 vengono solo se si considerano come blocchi anche le biglie singole...qualcuno ci ha fatto caso?

27-02-2008 19:33
Click Here to See the Profile for Larios Click here to Send Larios a Private Message Find more posts by Larios Add Larios to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 17:34.    Post New Thread    Post A Reply
Pages (10): « 1 2 3 4 [5] 6 7 8 9 » ... 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.091 seconds (69.11% PHP - 30.89% MySQL) con 24 query.