What's wrong ?
- From: "Daniel.C" <dcolardelleZZZZ@xxxxxxx>
- Date: Thu, 6 Mar 2008 14:35:26 +0100
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
.
- Follow-Ups:
- Re: What's wrong ?
- From: Falcon Kirtaran
- Re: What's wrong ?
- From: CBFalconer
- Re: What's wrong ?
- From: Richard Tobin
- Re: What's wrong ?
- From: Eric Sosman
- Re: What's wrong ?
- From: jacob navia
- Re: What's wrong ?
- Prev by Date: Re: Proper way Variable declaration
- Next by Date: Re: The stack and longjmp/setjmp
- Previous by thread: What could the compiler be possibly complaining about
- Next by thread: Re: What's wrong ?
- Index(es):
Relevant Pages
|