>char type;
>type = fgetc(stdin)
fgetc() doesn't return a char, it returns an int.
http://faq.cprogramming.com/cgi-bin/...&id=1043284351
>char type;
>type = fgetc(stdin)
fgetc() doesn't return a char, it returns an int.
http://faq.cprogramming.com/cgi-bin/...&id=1043284351
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]