GIDForums  

Go Back   GIDForums > Computer Programming Forums > CPP / C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 02-Dec-2005, 16:29
JasonEJolley JasonEJolley is offline
New Member
 
Join Date: Dec 2005
Posts: 1
JasonEJolley is on a distinguished road

C++ Clearing the Screen


How do you clear the screen in a console application? Thanks.
  #2  
Old 02-Dec-2005, 18:17
Paramesh's Avatar
Paramesh Paramesh is offline
Regular Member
 
Join Date: Sep 2005
Location: The Milky Way
Posts: 922
Paramesh is a jewel in the roughParamesh is a jewel in the roughParamesh is a jewel in the rough

Re: C++ Clearing the Screen


By printing some 50 line breaks, by using '\n'.


Paramesh.
__________________

Don't walk in front of me, I may not follow.
Don't walk behind me, I may not lead.
Just walk beside me and be my friend.
  #3  
Old 10-Dec-2005, 21:46
learningbasics learningbasics is offline
Junior Member
 
Join Date: Dec 2005
Posts: 38
learningbasics is on a distinguished road

Re: C++ Clearing the Screen


or using

clrscr(); //cammand

(or thats it for me for C++ 3.0, and also C++BuilderX)
  #4  
Old 10-Dec-2005, 22:09
Paramesh's Avatar
Paramesh Paramesh is offline
Regular Member
 
Join Date: Sep 2005
Location: The Milky Way
Posts: 922
Paramesh is a jewel in the roughParamesh is a jewel in the roughParamesh is a jewel in the rough

Re: C++ Clearing the Screen


Quote:
Originally Posted by Basics
(or thats it for me for C++ 3.0, and also C++BuilderX)
Yes. clrscr() works for only TurboC or Borland compilers.
Hence it is not recommended.

But you can create your own clrscr function, may be like this:
CPP / C++ / C Code:
void clrscr() {
    int i;
    for(i = 0; i < 50; i++)
        printf("\n");
}

Regards,
Paramesh.
__________________

Don't walk in front of me, I may not follow.
Don't walk behind me, I may not lead.
Just walk beside me and be my friend.
 
 

Recent GIDBlogNARMY by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Partial screen capture jessebear75ange MS Visual C++ / MFC Forum 1 16-Aug-2005 10:16
Major screen garbling problem... DeusExMachina Computer Software Forum - Windows 3 29-May-2005 17:23
laptop hp n3370 - how to get a replacement screen? bubitutor Computer Hardware Forum 7 05-Sep-2004 16:50
blue screen markz Computer Software Forum - Windows 3 30-May-2004 11:22

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 01:55.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.