Clrscr Function In Dev C++

Function getch in C program prompts a user to press a character. It doesn't show up on the screen. Its declaration is in 'conio.h' header file. The function is not a part of standard C library. C programming code for getch. May 11, 2010  problems with clrscr in Dev C? How can u use clrcsr in Dev C? 1 decade ago. Favourite answer. I believe that is a function to clear the screen in a console if I'm not mistaken. You should check out QTCreator. It is free, and open source. Not to mention cross platform.

Please, someone explain me why when I compile this code in Dev-C++ (Windows OS) the following error message apears: 'clrscr' undeclared (first use this function)

Clrscr function in dev c download

int main()
{ int c;
char d;
clrscr();
printf(' Example program for PSC232 n');
setup();

printf('*IDN?nr');
send('*IDN?n');
printf('RECEIVE...nr');
loop:
receive();

goto loop;
}

ps: ignore the functions setup, send and receive

  • 2 Contributors
  • forum 5 Replies
  • 1,021 Views
  • 2 Days Discussion Span
  • commentLatest Postby jmanguLatest Post
How to use clrscr function in dev c++

jmangu

Clrscr Function In Dev C 4

I've just found a way to solve the problem. Include the stdlib library (#include <stdlib.h>;) and instead of clrscr(); code replace for system('cls'); and voilá it works.