delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/16/15:17:20

From: Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How could I clear screen in C++???
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <p94kfsougdfbhq88cekiq8m9asfc6qvv8u@4ax.com>
References: <eQP3QX9p$GA DOT 274 AT net025s>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 28
X-Trace: /KHlxMXbaGH6R9Uekoaigc7jChcTXMxF8+TAmGQSFw5kPQcgLJKfrDCkdW9Ty40jKYGyWPveySSL!2yA0mSnfgFsfjIE8lOMW1ndHVR4wN1PztTshm4J2RaBbQqexNZWzPlwxklOs72qcmty3Li6mdXB+!+xAlKRg=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Sun, 16 Apr 2000 19:18:07 GMT
Distribution: world
Date: Sun, 16 Apr 2000 19:18:08 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Sun, 16 Apr 2000 20:54:44 +0200, "Wie" <ewwwwwf> wrote:

>In BASIC you type cls, but what is this in C++???

C++?  Can't.  The C++ language does not have a concept of "screen."

C++ in conio-capable systems (such as DJGPP)?  clrscr()


#include <iostream>
#include <conio.h>

using namespace std;

int main(void)
{
  clrscr();
  cout << "hello world\n";
  return 0;
}

-- 
Damian Yerrick
"I refuse to listen to those who refuse to listen to reason."
See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your signature to
prevent the spread of signature viruses.  http://www.mcafee.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019