clear old line in c++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jazzar
    New Member
    • Mar 2008
    • 1

    clear old line in c++

    hello
    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
  • Studlyami
    Recognized Expert Contributor
    • Sep 2007
    • 464

    #2
    To clear the console screen is OS dependent. On Windows include the header <cstdlib> and then use std::system("CL S");

    Comment

    Working...