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
Solved

Clearing the screen

Posted on 1998-08-13
2
204 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

856 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