thanks for link
Type: Posts; User: zackboll
thanks for link
So stdin is referring to the input buffer. I am not reading the string from a file, but rather the user types it in.
will I have to flush the buffer after the user goes through the "scanf" for a...
would this be better, replace the
gets(str);
with
fgets(str, SIZE, stdin);
I have a question in regards to scanning in a character array with spaces for a project im working on for an introductory class in C programming.
I know that I cant use the scanf function becasue...
thanks again, Im new to C so im not very good
Zack
thank you Scribbler, what you suggested worked really well. I just need to figure out how to clear the buffer before inputs now.
Zack
int fflush(FILE *ostream);
Should I worry about clearing the buffer in this program. I read the FAQ. How do you clear keyboard input from buffer?
thanks,
Zack
Doesn't that just clear the buffer memory?
Zack
Thanks,
Im going to look in my C book and see if I can figure out how to do that.
Zack
In my introductory C class I wrote a program that takes two points on the earths surface and calculates the arc distance between them. I finished up the projects, except that I have one question on...