Re: [Dev-C++] clrscr() and c99 compatibility
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: metalseb <met...@fr...> - 2002-09-24 14:34:22
|
Good afternoon Matthew
>Code snippet: This happened several times with me, so I'm quite interested
>to find out the reason why.
>
>sample code:
>
>void log_in(void)
>{
> clrscr();
> printf("User login: ");
> char login[80];
> gets(login);
> int c;
> c = atoi(login);
> if (c != 0 || c != 1 || c != 2) {
> clrscr();
> printf("Invalid login.");
> for (;;) {
> if (kbhit()) break;
> }
> }
>}
>
>And it would give me a parsing error at "char login[80]" every time.
>What's up?
I tried it on my DevCpp 4.9.4.1 package and it gave me no compiling errors. And I really can't
see why this should gave you errors at compile time.
Kind regards
--
Seb
|