| www.delorie.com/archives/browse.cgi | search |
| From: | Damian Yerrick <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: a simple question |
| Organization: | Pin Eight Software http://pineight.8m.com/ |
| Message-ID: | <ffhcgs8s4t0c7o3jfrve3jl1rfpid19j78@4ax.com> |
| References: | <3 DOT 0 DOT 6 DOT 32 DOT 20000424232442 DOT 00797b80 AT mindspring DOT com> |
| X-Newsreader: | Forte Agent 1.7/32.534 |
| MIME-Version: | 1.0 |
| Lines: | 29 |
| X-Trace: | /KDWjZ7SnZ9vc2CGykH08kDGHO5gHd1iMflH9o//fVFOOpmsmMw7C3MmyAe9FFo5neObffD/5kQW!hpowoCibo51kV/ZgUTNO31IAw8TE0bqjqNY1+rNzvjtqY0nTCIatdsuQHTdoZ4dKJqqMWyX5lmoY!eHYh1uA= |
| 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: | Wed, 26 Apr 2000 01:30:53 GMT |
| Distribution: | world |
| Date: | Wed, 26 Apr 2000 01:30:53 GMT |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
On Mon, 24 Apr 2000 23:24:42 -0400, hnair AT mindspring DOT com wrote:
>hi,
>I am just studying visual c++. Can you please tell me the function
>that can be used to "clear screen" for a program running in MSDOS.
>In turbo c++ i used ' clrscr(); ' which doesn't work in VC++.
Offtopic. Go to comp.os.ms-windows.programmer.* for help on this.
But this works in all C/C++ environments that have the concept of a
terminal (including DJGPP and M$VC):
#define SCREEN_HT 50 /* the maximum terminal size under DOS/Win */
void clrscr()
{
int i;
for(i = 0; i < SCREEN_HT; i++)
printf("\n");
}
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |