Why doesn't this work?
Name:
Anonymous
2011-01-30 18:00
Why doesn't this work?
#include <stdio.h>
main()
{
int c, nl;
nl = 0;
while ((c = getchar()) != EOF)
if (c == '\n')
++nl;
printf("%d\n", nl);
}
Name:
Anonymous
2011-01-30 18:05
Why should it work?
Name:
Anonymous
2011-01-30 18:06
It doesn't print nl.
Name:
Anonymous
2011-01-30 18:08
Your reaction time is too slow. Try turning the turbo button off.
Name:
Anonymous
2011-01-30 18:13
ONE WORD: THE OPTIONAL INDENTATION OF CODE. THREAD OVER
Name:
Anonymous
2011-01-30 18:33
>>5
It was idented but this forum removed it.
Name:
Anonymous
2011-01-30 18:34
>>6
forum
Back to
just get the fuck out of here, ok?
Name:
Anonymous
2011-01-30 18:38
It does work. Stop trolling.
Name:
Anonymous
2011-01-30 18:44
>>1
Are you compiling it with a Python compiler?
Name:
Anonymous
2011-01-30 18:49
>>7
Forum. A public meeting or assembly for open discussion
Name:
Anonymous
2011-01-30 18:53
>>10
/prog/ isn't public nor for
open discussion.
Name:
Anonymous
2011-01-30 20:02
>>10
There are only three people on Prague. That hardly qualifies as public.
Name:
Anonymous
2011-01-30 20:14
Looks like a case of C FAQ parentheses.
Name:
Anonymous
2011-01-30 23:24
I think python was your previous language?
Name:
Anonymous
2011-01-31 0:46
std::cout >> std::cin;
Exception: stack overflow.
Name:
Anonymous
2011-01-31 5:29
Works for me. Therefore I second
>>7
Name:
[code]
2011-01-31 10:55
sed 's/F)\(.*\)}/F){\1}}/g'
Name:
Anonymous
2011-01-31 12:55
>>17
Why would you do that? Are you some kind of retard?