Logo 
Search:

Visual C++ FAQ

Submit Interview FAQ
Home » Interview FAQ » Visual C++RSS Feeds

How to clrscr() function working in Visual C++

  Shared By: Vivek Patel    Date: Oct 16    Category: Visual C++    Views: 8978

Answer:

In order to make clrscr() function of Turbo C, to works in Visual C++ add following namespace.

#include <stdlib.h>


And instead of using clrscr() function make use of system("cls"); method.


int main( void )
{
system("cls");
return 0;
}

For more Information: http://msdn.microsoft.com/en-us/library/ms682022(VS.85).aspx

Share: 
 

Didn't find what you were looking for? Find more on How to clrscr() function working in Visual C++ Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: