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.

Answers


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: http://www.projectpluto.com/win32a.htm


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

Executing JavaScript when a link is clicked

javascript

Which is preferable, assuming we don't care about people who don't have JavaScript enabled?

Flask coverting to and from JSON

python json rest flask

I'm working on a Flask example that takes blog posts and adding them to a database through a RESTful service.