Solved

Clearing the screen

Posted on 1998-08-13
2
206 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem with SqlConnection 4 192
Installshield for Embarcadero EX 10.1 Berlin 4 90
keep track of class structure 1 53
C++ statement T∗ begin(Vector<T>& x) 5 42
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…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

737 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