Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

julienX

system("cls") ???

This topic is 5793 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know that system("cls") is used with the header file stdlib.h, but don''t know its exact function. Any help would be great.

Share this post


Link to post
Share on other sites
Advertisement
Its clear screen. system() will basically execute a command in the command prompt. Open up a command prompt and type cls for an example

=*=
If things seem bad, think that they can get a whole load worse, and they don''t seem so bad anymore

=*=

Share this post


Link to post
Share on other sites
Is there a list somewhere for all the system() functions?
The header file is to hard to read

Beatles are the best!

Share this post


Link to post
Share on other sites
cls is not a function of system() per se - its a command in your command shell. Try typing help at a command prompt.



For those who believe in God, most of the big questions are answered. But for those of us who can''t readily accept the God formula, the big answers don''t remain stone- written. We adjust to new conditions and discoveries. We are pliable. Love need not be a command or faith a dictum. I am my own God. We are here to unlearn the teachings of the church, state, and our educational system. We are here to drink beer. We are here to kill war. We are here to laugh at the odds and live our lives so well that Death will tremble to take us -- Charles Bukowski

Share this post


Link to post
Share on other sites
That system() function can actually call any executable or dos command. Keep in mind though that "cls" only working in text mode. What I''m referring to is technically a dos level command and won''t work if you are doing graphics in any other mode. =) I hope that helped!

-Lewis [m80]
Play QUADz MX @
www.m80produxions.com

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!