In VS 2008, I created an empty project in VC++ and added a source file as . . .
`
#include<stdio.h>
#include<conio.h>
int main()
{
....
clrscr();
.....
return 0;
}
`
I get these errors/warnings :
Warning 1 warning C4013: ‘clrscr’ undefined; assuming extern returning int c:\tc\toh.c 170 TOH
Error 3 error LNK2019: unresolved external symbol _clrscr referenced in function _main TOH.obj TOH
What the problem??
Thanks in advance..
Use the FillConsoleOutputCharacter and FillConsoleOutputAttribute functions. There is even an example of how to do that at MSDN, convenniently called “Clearing the screen“