Hello.
I just copied this code from my book with no modification :
#include <stdio.h>
/* count characters in input; 1st version */
main()
{
long nc;
nc = 0;
while (getchar() != EOF)
++nc;
printf("%ld\n", nc);
}
There is no output, and no completion either. I tried adding a "printf" at
the end of the code, but it doesn't display.
i'm using MinGW developer studio with windows XP home.
Thanks in advance.
Daniel
I just copied this code from my book with no modification :
#include <stdio.h>
/* count characters in input; 1st version */
main()
{
long nc;
nc = 0;
while (getchar() != EOF)
++nc;
printf("%ld\n", nc);
}
There is no output, and no completion either. I tried adding a "printf" at
the end of the code, but it doesn't display.
i'm using MinGW developer studio with windows XP home.
Thanks in advance.
Daniel
Comment