Clrscr () does not work in VC ++ (VS 2008) .....?

In VS 2008, I created an empty project in VC ++ and added the 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 returns int c: \ tc \ toh.c 170 TOH

Error 3 of error LNK2019: unresolved external symbol _clrscr referenced by function _main TOH.obj TOH

What is the problem?

Thanks in advance.

+3
source share
4 answers

Use the functions FillConsoleOutputCharacter and FillConsoleOutputAttribute. There is even an example of how to do this on MSDN, commonly called " Screen Cleanup "

+1
source

Borland V++? . , \n s?

+4

clrscr(); ( "cls" );

0

, conio ++ clrscr, conio c native lib!!

( "cls" ) clrscr(). , , !

#define clrscr(); system("cls");

clrscr(). , .

, stdlib, - .

#include <stdlib.h>
0

Source: https://habr.com/ru/post/1763319/


All Articles