Δημοσιεύτηκε: 30 Σεπ 2009, 20:33
Με τις νεοεχθήσες γνώσεις από το Τεί και με την βοηθεία σας έκανα το εξής πρόγραμματάκι:
Αλλά στο compilation πήρα τα εξής errors:
Τι στο καλό
το στανίο μου φταίει;
Ακόμα που μπορώ μερικά headers παραπάνω και τι στο καλό είναι αυτοί
Off topic:
Καλά στο τει θα κουφαθούν

Μόλις ξεκίνησα και μοθ αρέσει η C!!!
- Κώδικας: Επιλογή όλων
#include <stdio.h>
int main(void)
{cons int a=2;
int x=3;
float z=9.1;
double a_a=2.91992;
char xar='Οι μεταβλητές είναι:';
printf("%c\n'Ακαιρεες':\n%d\n%d\n'Πραγματικοι:'\n%f\n%lf\n ",xar,a,x,z,a_a);
return 0;
}
Αλλά στο compilation πήρα τα εξής errors:
- Κώδικας: Επιλογή όλων
/home/dimitris/Desktop/new.c: In function ‘main’:
/home/dimitris/Desktop/new.c:3: error: ‘cons’ undeclared (first use in this function)
/home/dimitris/Desktop/new.c:3: error: (Each undeclared identifier is reported only once
/home/dimitris/Desktop/new.c:3: error: for each function it appears in.)
/home/dimitris/Desktop/new.c:3: error: expected ‘;’ before ‘int’
/home/dimitris/Desktop/new.c:7:10: warning: character constant too long for its type
/home/dimitris/Desktop/new.c:7: warning: overflow in implicit constant conversion
/home/dimitrisα/Desktop/new.c:8: error: ‘a’ undeclared (first use in this function)
Τι στο καλό




Ακόμα που μπορώ μερικά headers παραπάνω και τι στο καλό είναι αυτοί

Off topic:
Καλά στο τει θα κουφαθούν



Μόλις ξεκίνησα και μοθ αρέσει η C!!!