Thread: please help

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    1

    Question please help

    does any one know what you have to type in for the clear screen instruction i thought it was clr.scr() but its not working and im not sure what library to include

    please help

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Please consult the FAQ.

    The link is just below. Try to read and understand it.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Its not rocket science vasanth's Avatar
    Join Date
    Jan 2002
    Posts
    1,683
    The header file to include is conio.h and the function name is
    clrscr(); please not this header file is of turbo c++ i am not sure whether it would work on other compilers.. But any way give it a try...

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    12
    I am using

    system ("cls");

    hope that's what you were looking for

  5. #5
    _B-L-U-E_ Betazep's Avatar
    Join Date
    Aug 2001
    Posts
    1,412
    Code:
    void clear()
    {
    
      int i,j,k;
    
      i = 80;
    
      j = 26
    
      k = i * j;
    
      while (j >= 0)
      {  
         cout << ' ';
         --j;
      }
    
      cout.flush();
    }
    
    or
    
    void clear()
    {
    
      int i=30;
    
      while (i >=0)
      {   
         cout << '\n';
         --i;
      }
    
      cout.flush()
    
    }
    Last edited by Betazep; 02-06-2002 at 06:16 PM.
    Blue

Popular pages Recent additions subscribe to a feed