.dsy:it. Pages (28): « First ... « 9 10 11 12 [13] 14 15 16 17 » ... Last »
Show 150 posts per page

.dsy:it. (http://www.dsy.it/forum/)
- Algoritmi e strutture dati (http://www.dsy.it/forum/forumdisplay.php?forumid=207)
-- Progetto "FACCIALIBRO" (http://www.dsy.it/forum/showthread.php?threadid=37551)


Posted by hyperion on 15-02-2009 13:13:

Originally posted by Bloom
Ma voi riuscite a far stampare le virgole nella stampa dei profili in modo corretto?
Io non ci riesco!!!!



...quali virgole??


Posted by Bloom on 15-02-2009 13:48:

Nella stampa.....Ah nooo
Ma che cosa ho guardato?Ero convinta che ci fossero...mi sa che me le sono sognate.
Le operazioni con ? vi escono giuste?


Posted by hyperion on 15-02-2009 13:55:

Originally posted by Bloom
Nella stampa.....Ah nooo
Ma che cosa ho guardato?Ero convinta che ci fossero...mi sa che me le sono sognate.
Le operazioni con ? vi escono giuste?


ti ho mandato un pm...cmq avrai guardato più su quando diceva : siano nick1,nick2,nick3 i profili ecc ecc....nell'output da stampare però nn ci sono..


Posted by Bloom on 15-02-2009 14:03:

Nella prima versione di faccialibro avevo visto le virgole ,ma magari mi sono sbagliata


Posted by Joy88 on 16-02-2009 10:03:

Ma ragazzi.. voi compilate con gcc -ansi progetto.c??
Perchè a me in tal caso da almeno (non scherzo) 100 warning....
:(

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

*Dante*


Posted by Bloom on 16-02-2009 10:04:

su linux:
gcc -ansi nomeprogetto.c -o nomeprogetto
per windows:
gcc -ansi -o progetto progetto.c


Posted by Joy88 on 16-02-2009 10:10:

Merda!
..e adesso come faccio????
..se li lascio sarà grave???

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

*Dante*


Posted by poi_1969 on 16-02-2009 10:11:

State attenti alle indicazioni di iuz-lab, a volte esce fuori tema.


Posted by hyperion on 16-02-2009 10:12:

Originally posted by Joy88
Merda!
..e adesso come faccio????
..se li lascio sarà grave???


che warning hai?


Posted by Joy88 on 16-02-2009 10:18:

Se proprio vuoi vederli... :D

progetto.c:1538: error: `trovato' previously defined here
progetto.c:1562: warning: data definition has no type or storage class
progetto.c:1563: error: parse error before '}' token
progetto.c:1564: error: redefinition of `g'
progetto.c:1542: error: `g' previously defined here
progetto.c:1564: error: invalid type argument of `->'
progetto.c:1564: warning: data definition has no type or storage class
progetto.c:1565: error: parse error before '}' token
progetto.c:1566: error: redefinition of `g'
progetto.c:1564: error: `g' previously defined here
progetto.c:1566: error: initializer element is not constant
progetto.c:1566: warning: data definition has no type or storage class
progetto.c:1567: error: parse error before '}' token
progetto.c:1570: error: redefinition of `a3'
progetto.c:1513: error: `a3' previously defined here
progetto.c:1570: error: invalid type argument of `->'
progetto.c:1570: warning: data definition has no type or storage class
progetto.c:1571: error: parse error before '}' token
progetto.c:1572: error: redefinition of `a3'
progetto.c:1570: error: `a3' previously defined here
progetto.c:1572: error: initializer element is not constant
progetto.c:1572: warning: data definition has no type or storage class
progetto.c:1573: error: parse error before '}' token
progetto.c:1575: error: redefinition of `a2'
progetto.c:1260: error: `a2' previously defined here
progetto.c:1575: error: invalid type argument of `->'
progetto.c:1575: warning: data definition has no type or storage class
progetto.c:1576: error: parse error before '}' token
progetto.c:1577: error: redefinition of `a2'
progetto.c:1575: error: `a2' previously defined here
progetto.c:1577: error: initializer element is not constant
progetto.c:1577: warning: data definition has no type or storage class
progetto.c:1578: error: parse error before '}' token
progetto.c:1604: error: redefinition of `trovato'
progetto.c:1562: error: `trovato' previously defined here
progetto.c:1604: warning: data definition has no type or storage class
progetto.c:1605: error: parse error before '}' token
progetto.c:1606: error: redefinition of `g'
progetto.c:1566: error: `g' previously defined here
progetto.c:1606: error: invalid type argument of `->'
progetto.c:1606: warning: data definition has no type or storage class
progetto.c:1607: error: parse error before '}' token
progetto.c:1608: error: redefinition of `g'
progetto.c:1606: error: `g' previously defined here
progetto.c:1608: error: initializer element is not constant
progetto.c:1608: warning: data definition has no type or storage class
progetto.c:1609: error: parse error before '}' token
progetto.c:1628: error: redefinition of `trovato'
progetto.c:1604: error: `trovato' previously defined here
progetto.c:1628: warning: data definition has no type or storage class
progetto.c:1629: error: parse error before '}' token
progetto.c:1630: error: redefinition of `g'
progetto.c:1608: error: `g' previously defined here
progetto.c:1630: error: invalid type argument of `->'
progetto.c:1630: warning: data definition has no type or storage class
progetto.c:1631: error: parse error before '}' token
progetto.c:1632: error: redefinition of `g'
progetto.c:1630: error: `g' previously defined here
progetto.c:1632: error: initializer element is not constant
progetto.c:1632: warning: data definition has no type or storage class
progetto.c:1633: error: parse error before '}' token
progetto.c:1636: error: redefinition of `a3'
progetto.c:1572: error: `a3' previously defined here
progetto.c:1636: error: invalid type argument of `->'
progetto.c:1636: warning: data definition has no type or storage class
progetto.c:1637: error: parse error before '}' token
progetto.c:1638: error: redefinition of `a3'
progetto.c:1636: error: `a3' previously defined here
progetto.c:1638: error: initializer element is not constant
progetto.c:1638: warning: data definition has no type or storage class
progetto.c:1640: error: parse error before "if"
progetto.c:1669: error: redefinition of `trovato'
progetto.c:1628: error: `trovato' previously defined here
progetto.c:1669: warning: data definition has no type or storage class
progetto.c:1670: error: parse error before '}' token
progetto.c:1671: error: redefinition of `g'
progetto.c:1632: error: `g' previously defined here
progetto.c:1671: error: invalid type argument of `->'
progetto.c:1671: warning: data definition has no type or storage class
progetto.c:1672: error: parse error before '}' token
progetto.c:1673: error: redefinition of `g'
progetto.c:1671: error: `g' previously defined here
progetto.c:1673: error: initializer element is not constant
progetto.c:1673: warning: data definition has no type or storage class
progetto.c:1674: error: parse error before '}' token
progetto.c:1693: error: redefinition of `trovato'
progetto.c:1669: error: `trovato' previously defined here
progetto.c:1693: warning: data definition has no type or storage class
progetto.c:1694: error: parse error before '}' token
progetto.c:1695: error: redefinition of `g'
progetto.c:1673: error: `g' previously defined here
progetto.c:1695: error: invalid type argument of `->'
progetto.c:1695: warning: data definition has no type or storage class
progetto.c:1696: error: parse error before '}' token
progetto.c:1697: error: redefinition of `g'
progetto.c:1695: error: `g' previously defined here
progetto.c:1697: error: initializer element is not constant
progetto.c:1697: warning: data definition has no type or storage class
progetto.c:1698: error: parse error before '}' token
progetto.c:1701: error: redefinition of `a3'
progetto.c:1638: error: `a3' previously defined here
progetto.c:1701: error: invalid type argument of `->'
progetto.c:1701: warning: data definition has no type or storage class
progetto.c:1702: error: parse error before '}' token
progetto.c:1703: error: redefinition of `a3'
progetto.c:1701: error: `a3' previously defined here
progetto.c:1703: error: initializer element is not constant
progetto.c:1703: warning: data definition has no type or storage class
progetto.c:1704: error: parse error before '}' token
progetto.c:1728: error: redefinition of `trovato'
progetto.c:1693: error: `trovato' previously defined here
progetto.c:1728: warning: data definition has no type or storage class
progetto.c:1729: error: parse error before '}' token
progetto.c:1730: error: redefinition of `g'
progetto.c:1697: error: `g' previously defined here
progetto.c:1730: error: invalid type argument of `->'
progetto.c:1730: warning: data definition has no type or storage class
progetto.c:1731: error: parse error before '}' token
progetto.c:1732: error: redefinition of `g'
progetto.c:1730: error: `g' previously defined here
progetto.c:1732: error: initializer element is not constant
progetto.c:1732: warning: data definition has no type or storage class
progetto.c:1733: error: parse error before '}' token
progetto.c:1752: error: redefinition of `trovato'
progetto.c:1728: error: `trovato' previously defined here
progetto.c:1752: warning: data definition has no type or storage class
progetto.c:1753: error: parse error before '}' token
progetto.c:1754: error: redefinition of `g'
progetto.c:1732: error: `g' previously defined here
progetto.c:1754: error: invalid type argument of `->'
progetto.c:1754: warning: data definition has no type or storage class
progetto.c:1755: error: parse error before '}' token
progetto.c:1756: error: redefinition of `g'
progetto.c:1754: error: `g' previously defined here
progetto.c:1756: error: initializer element is not constant
progetto.c:1756: warning: data definition has no type or storage class
progetto.c:1757: error: parse error before '}' token
progetto.c:1760: error: redefinition of `a3'
progetto.c:1703: error: `a3' previously defined here
progetto.c:1760: error: invalid type argument of `->'
progetto.c:1760: warning: data definition has no type or storage class
progetto.c:1761: error: parse error before '}' token
progetto.c:1762: error: redefinition of `a3'
progetto.c:1760: error: `a3' previously defined here
progetto.c:1762: error: initializer element is not constant
progetto.c:1762: warning: data definition has no type or storage class
progetto.c:1763: error: parse error before '}' token
progetto.c:1765: error: redefinition of `a2'
progetto.c:1577: error: `a2' previously defined here
progetto.c:1765: error: invalid type argument of `->'
progetto.c:1765: warning: data definition has no type or storage class
progetto.c:1766: error: parse error before '}' token
progetto.c:1767: error: redefinition of `a2'
progetto.c:1765: error: `a2' previously defined here
progetto.c:1767: error: initializer element is not constant
progetto.c:1767: warning: data definition has no type or storage class
progetto.c:1768: error: parse error before '}' token
progetto.c:1771: error: redefinition of `a'
progetto.c:1370: error: `a' previously defined here
progetto.c:1771: error: invalid type argument of `->'
progetto.c:1771: warning: data definition has no type or storage class
progetto.c:1772: error: parse error before '}' token
progetto.c:1773: error: redefinition of `a'
progetto.c:1771: error: `a' previously defined here
progetto.c:1773: error: initializer element is not constant
progetto.c:1773: warning: data definition has no type or storage class
progetto.c:1774: error: parse error before '/' token
progetto.c:1774: error: stray '\350' in program
progetto.c:1796: error: parse error before '/' token
progetto.c:1798: error: conflicting types for `c'
progetto.c:968: error: previous declaration of `c'
progetto.c:1798: error: conflicting types for `p'
progetto.c:1312: error: previous declaration of `p'
progetto.c:1800: error: parse error before "for"
progetto.c:1803: error: `i' undeclared here (not in a function)
progetto.c:1803: error: conflicting types for `group'
progetto.c:1798: error: previous declaration of `group'
progetto.c:1803: warning: data definition has no type or storage class
progetto.c:1804: error: `i' undeclared here (not in a function)
progetto.c:1804: error: conflicting types for `p'
progetto.c:1798: error: previous declaration of `p'
progetto.c:1804: warning: data definition has no type or storage class
progetto.c:1805: error: parse error before '}' token
progetto.c:1827: warning: parameter names (without types) in function declaratio
n
progetto.c:1827: error: conflicting types for `grado_amico'
progetto.c:978: error: previous declaration of `grado_amico'

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

*Dante*


Posted by Joy88 on 16-02-2009 10:19:

..e attenzione.. non sono mica tutti.. :(

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

*Dante*


Posted by hyperion on 16-02-2009 10:31:

Originally posted by Joy88
..e attenzione.. non sono mica tutti.. :(


ma come fa a compilartelo normalmente??!
cmq alcuni errori :
progetto.c:1570: error: invalid type argument of `->'
qui gli stai dando in pasto un qualcosa che non è un puntatore ad una struttura infatti come argomento -> vuole un puntatore

esempio



struct prova {

int campo;

}

typedef struct prova chiave;

chiave *k;

k->campo;



cosi è giusto perchè k è un puntatore alla struttura..altrimenti dovrebbe darti quell'errore...


Posted by hyperion on 16-02-2009 10:32:

progetto.c:1563: error: parse error before '}' token


guarda che magari hai dimenticato qualche " ; " o errore di sintassi stupido prima di "} "


Posted by hyperion on 16-02-2009 10:35:

Ci sono tante ridefinizioni a quanto si vede....stai attento a non ridefinire tipi,funzioni già definiti in precedenza altrimenti va tutto in conflitto....C non è come Java che potevi avere più funzioni con lo stesso nome e argomenti diversi,non esiste overloading!


Posted by Joy88 on 16-02-2009 10:40:

Ragazzi con il dev c mi funziona senza warning nè niente..
se non metto -ansi funziona con pochissimi warning (che pensavo di lasciare) anche da riga di comando..
quindi direi che non mancano nè parentesi, nè punti e virgola..
..hyperion alla 1570 c'è: a3 = a3->next_a;
dove a3 è struct lista_amicizie *a3=a; e next_a è struct lista_amicizie *next_a=a;

Non so...
se dichiaro delle variabili locali con lo stesso nome in diverse funzioni non dovrebbe dare overloading no?!

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

*Dante*


All times are GMT. The time now is 14:22. Pages (28): « First ... « 9 10 11 12 [13] 14 15 16 17 » ... Last »
Show all 417 posts from this thread on one page

Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.