Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
C++ Question
Reply
Posted 2003-11-06, 08:35 PM
It's a simple question i just forget how to do it... im making a dos based game and for some reason i forget the code to clear the screen... does anyone know what that is off hand? thx.

is it system("cls"); ?

Last edited by RaZ; 2003-11-06 at 08:39 PM.
Old
Profile PM WWW Search
RaZ is neither ape nor machine; has so far settled for the in-betweenRaZ is neither ape nor machine; has so far settled for the in-between
 
 
RaZ
 



 
Reply
Posted 2003-11-06, 09:42 PM in reply to RaZ's post "C++ Question"
I know its somthin with CLS lol
Old
Profile PM WWW Search
-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution-Spector- is the result of 14 billion years of hydrogen atom evolution
 
 
-Spector-
 



 
Reply
Posted 2003-11-06, 10:46 PM in reply to RaZ's post "C++ Question"
Import the os module and then you can use the system function you
would normaly use to clear the screen in your os.
In linux:

import os
os.system('clear')

In dos/windows:

import os
os.system('cls')

Last edited by Demosthenes; 2003-11-06 at 11:04 PM.
Old
Profile PM WWW Search
Demosthenes seldom sees opportunities until they cease to beDemosthenes seldom sees opportunities until they cease to beDemosthenes seldom sees opportunities until they cease to beDemosthenes seldom sees opportunities until they cease to be
 
Demosthenes
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 03:17 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.