Re: [Dev-C++] Window closes after Run
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <wa...@wa...> - 2004-11-02 07:03:57
|
On 2 Nov 2004 at 1:03, fred mira wrote:
> Hello ,
> This is a follow up with respect to my question about the execution
> window which closes after Run.
>
> First, I am using Dev C++ (4.9.9.0) and I have Windows XP.
>
> When I use :
>
> #include <stdio.h>
> int main(int argc, char **argv)
> {
> printf ("Press ENTER to continue.\n");
> getchar (); /* wait for input */
> return 0;
> }
>
> OR
>
> #include <stdlib.h>
> int main(int argc, char **argv)
> {
> system ("pause"); /* execute M$-DOS' pause command */
> return 0;
> }
>
>
> I get error messages (6 for the first and 4 for the second) which are
> : stray' \204' in program.
>
> these messages are after the following :
> in function ' int main(int,char**)' which is not assigned as error.
I just copied both of the code samples that you gave and pasted them
both into Dev-C++. They both compiled and ran just fine.
However, the error message you're getting makes it sound like you've
got a stray ascii character in the text file. Octal 204 is the =E4
character (if that came across.) I don't see that character in the
examples you listed. Are you sure the code samples are exactly what
you're trying to compile?
Watson (the pencil neck) Davis
|