Computing.Net > Forums > Programming > clear screen in visual C++

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

clear screen in visual C++

Reply to Message Icon

Name: christophe
Date: June 6, 2002 at 01:33:38 Pacific
Comment:

Hi,
can anybody tell me how to clear the screen in visual C++? printf("\032") doesn't work and without the clear screen my program is pretty ugly.

thanks



Sponsored Link
Ads by Google

Response Number 1
Name: cup
Date: June 6, 2002 at 02:43:13 Pacific
Reply:

If you have ansi.sys loaded, try

printf ("\033[2J");



0

Response Number 2
Name: Jim
Date: June 6, 2002 at 07:08:40 Pacific
Reply:

I thought it was supposed to be printf("\x0C");

You could use printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");


0

Response Number 3
Name: Alex
Date: June 7, 2002 at 18:12:49 Pacific
Reply:

Hi
try that one out
system("cls");
put it in the beginning of the function and it will clear all the previous stuff. you can put it anywhere you like
Enjoy



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: clear screen in visual C++

UTF8 in visual c 6.0 www.computing.net/answers/programming/utf8-in-visual-c-60/8523.html

RichEdits in Visual C++ www.computing.net/answers/programming/richedits-in-visual-c/11521.html

TextOut in Visual C++ www.computing.net/answers/programming/textout-in-visual-c/5726.html