Clear screen in C

I am new to programming, and so I do encounter basic issues. In the program I am building, I need to clear the screen at a certain point, but it does not accept clrscr(); or system("cls"); what are other options available?? I have included stdio.h & conio.h. If it helps, the compiler I am using is Visual studio 2010.


Visual Studio removed "common" conio.h functions, like clear screen, a long time ago.

system() is in stdlib.h if you want to use it.

However, if you want to do serious terminal output on Windows, check out something like this:

You, should use stdlib.h library file to get the clear screen command. And also the command for clearing the screen in c/c++ in visual studio is

#include <stdlib.h>

system ("cls");

Need Your Help

Difference between RouteTable.Routes and HttpConfiguration.Routes?

I am wondering why routes seem to be configurable from both the HttpConfiguration object and the RouteTable class? Clearly the two .Routes properties are not of the same type, but they seem to stay

sort array in DESC order


how can i get this order

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.