Sir,
Since this is my first encounter with GCC, I am totally a newbie.
When I tried to run the following program using GCC it gave me some errors.
Program :
# include <stdio.h>
# include <conio.h>
void main()
{
clrscr();
printf("First program using GCC");
getch();
}
Errors:
first.c:2:20: fatal error: conio.h: No such file or directory
compilation terminated.
When I removed conio.h header file it gave me errors regarding clrscr() and
getch() since these two functions are defined in conio.h
So my questions are:
1) How to clear the output screen (replacement of clrscr() ) in GCC ?
2) Is there any similar kind of replacement for getch() too ?
3) Why conio.h doesn't work in GCC ?
Avinash Sonawane
PICT Pune
Facebook <http://www.facebook.com/avinash.sonawane1990>
Twitter <http://www.twitter.com/SonawaneAvinash>