Help clearing screen 
Author Message
 Help clearing screen

I am writting my first program for school.
It is a win32 consol application
I need to clear the screen. But am unable to
find a command to do this in C ( Not C++)

Can anyone help me.  Please.



Wed, 26 Sep 2001 03:00:00 GMT  
 Help clearing screen

Quote:

>I am writting my first program for school.
>It is a win32 consol application
>I need to clear the screen. But am unable to
>find a command to do this in C ( Not C++)

One reason might be that there is no such command in C. In fact, there
are no "commands" in C. The language has some reserved words, and a
"normal" implementation comes with a library of functions that handle
things like I/O. This library does not assume the presence of a screen
and does not provide any features that cannot be implemented for a
teletype.

Quote:
>Can anyone help me.  Please.

If your assignment says "clear the screen in a C program without
using system specific extensions", write a short essay on the
impossibility of this task.

Kurt

--
| Kurt Watzka                            



Thu, 27 Sep 2001 03:00:00 GMT  
 Help clearing screen

Quote:

>I am writting my first program for school.
>It is a win32 consol application
>I need to clear the screen. But am unable to
>find a command to do this in C ( Not C++)

>Can anyone help me.  Please.

Without gettting into interupts, anything you can do at a DOS prompt,
you can do from a C program by using C's system function. So, you can
clear the screen simply by...

system( "cls" );

HTH,

DG

--
  ___________________________________________________________
 |                                                                
 | OBJECT CONTINUUM                                                    
 | Seamless Object Oriented Extensions For The C++ Language      
 |                                                                
 | DateTime++(TM) - A Complete Set of Date & Time Classes        
 | SQLStream(TM)  - Object-Oriented ODBC                        
 |                                                                
 | http://www.objectcontinuum.com                                
 |___________________________________________________________



Thu, 27 Sep 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. HELP - Clear Screen

2. Init Screen w/o Clear Screen

3. CLEAR-SCREEN HELP (C)

4. Help, anyone know how to clear the screen?

5. Clear Screen Function? Help

6. PLEASE HELP !! CLEAR SCREEN

7. Need help clearing the screen

8. Need help with fast clear screen routine in Asm or C

9. Need help: clearing a text screen in Unix in XWindow

10. Help please clearing screen

11. need help with clearing the screen..

12. Clearing screen before displaying menu

 

 
Powered by phpBB® Forum Software