Forum: C May 18th, 2008 |
| Replies: 3 Views: 1,035 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 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 23rd, 2008 |
| Replies: 7 Views: 990 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 maybe some misunderstanding on your part ? |