Dan
2010-02-19 00:37:20 UTC
/tmp/ccEcsWOr.o: In function `main':
chapter10_1.c:(.text+0x21): undefined reference to `getint'
collect2: ld returned 1 exit status
my code is
#include
#include
main()
{
struct details
{
FILE *fp;
char name;
int number;
int quantity;
char letter;
}details;
printf("Information is here \n");
details.name = getchar();
details.number = getint();
details.quantity = details.name && details.number;
details.fp = fopen("stock.dat","w");
fprintf(details.fp,"%s EOL %d EOL %d EOL",details.name,details.number,details.quantity);
fclose(details.fp);
}
could you alter my code seeing as how i dont know what else to do.
Thanks for the help