Solved

Clearing the screen

Posted on 1998-08-13
2
203 Views
Last Modified: 2010-04-01
I would like to know if there is a function or standard method of clearing the contents of the screen in a C++ program
0
Comment
Question by:Paul10
2 Comments
 
LVL 2

Accepted Solution

by:
warmcat earned 20 total points
ID: 1170203
This isn't really a C++ issue; it makes no assumptions about the size, number or kind of display the program has.  However, most character-based displays will interpret

printf("%c", 12);

as a request to clear the display.
0
 

Expert Comment

by:kraphics
ID: 1170204
printf("%c", 12);

did not work for me in MSVC 5.0

Kraphics
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now