Search Results

Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: Google Spider ; Forum: C and child forums
Forum: C May 18th, 2008
Replies: 3
Views: 1,035
Posted By Google Spider
OK so there can't be two newline characters in buffer. How about an EOF following the \n?


>As such, the loop isn't a complete solution

What is the possible complete solution?
Forum: C May 18th, 2008
Replies: 3
Views: 1,035
Posted By Google Spider
Hi,

Someone told me to use this code to clear the input buffer..
(http://www.webinmind.net/bpc.html#two)
while((ch=getchar())!='\n' && ch !=EOF);

But I fail to understand how it actually...
Forum: C Feb 24th, 2008
Replies: 7
Views: 990
Posted By Google Spider
Forum: C Feb 23rd, 2008
Replies: 7
Views: 990
Posted By Google Spider
void main()

int main() is standard. Use that.

You declared numbers[10] to be an array and num_val as an integer, and then started using num_val as an array ??
I guess you should write the prog...
Forum: C Feb 23rd, 2008
Replies: 7
Views: 990
Posted By Google Spider
maybe some misunderstanding on your part ?
Showing results 1 to 5 of 5

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC