Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Basic code help

Posted on 2000-05-18
1
Medium Priority
?
221 Views
Last Modified: 2010-05-18
A really, really simple question...... (dont laugh!)

I need some help on some basic code. Can someone tell me the command to clear the screen? I know what it was in C but I cant find it in C++.

Also, how can you change the colour of text?

Thanks


0
Comment
Question by:mrarse
[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
1 Comment
 
LVL 22

Accepted Solution

by:
nietod earned 40 total points
ID: 2821617
Sorry, but there is no command for this.  Even C does not have such a command.   C and C++ are written to be hardware and platform independant.  they do not assume that they are running on a compuyter that has a display, they may be runnign on a computer with a teletype or brail printer for example, and there is no way to clear the output in that case.

Now there are OS or hardware specific ways of doing this.  These are not part of C/C++, but are part of the operating system or platform you are running on.  However, these are not portable techniques.  i.e. it might work in Windows but won't even compile in Unix, etc.

What OS are you using?  What compiler?
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
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 viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

688 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