0
MyUserID

Need More C Programming Help

Recommended Posts

How do you clear the screen in a C program?? I have to do it on my homework, but it isnt even in the damn textbook >:(.

------------------------------------------------------

Remember kids, eagles may soar, but at least weasels dont get sucked into jet engines.

Share this post


Link to post
Share on other sites
Quote

Try system("cls");

This equivalent to typing "cls" while in DOS.



True, but then you are depending on the OS for that. A better (more standard) way is to call...

clrscr();

I don't remember if its defined in conio.h or stdio.h, so you might need to... #include, but I'm not sure, its been a while. :)
~Chivo

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

0