Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 866
vin Avatar asked Jan 02 '26 03:01

vin


1 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

like image 119
std''OrgnlDave Avatar answered Jan 03 '26 16:01

std''OrgnlDave



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!