470,858 Members | 1,873 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,858 developers. It's quick & easy.

clear old line in c++

i am a new c++ student .. i want to ask some thing
i am searching for a way to clear old line in c++ ... for example
when the program ask me to input a number .. when i give that number ,, i want to clear that line in the screen ... each new input leads to need console ..reply please any one .. thanx
Mar 14 '08 #1
1 4753
464 Expert 256MB
To clear the console screen is OS dependent. On Windows include the header <cstdlib> and then use std::system("CLS");
Mar 14 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Tomomichi Amano | last post: by
3 posts views Thread by - Steve - | last post: by
22 posts views Thread by mp | last post: by
77 posts views Thread by Ville Vainio | last post: by
3 posts views Thread by samoore33 | last post: by
9 posts views Thread by Jess | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.