How do you get up one line on a compiled and run C++ Program?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Manson Mamaril
    New Member
    • Mar 2011
    • 1

    How do you get up one line on a compiled and run C++ Program?

    note: blinking cursor is indicated by an underscore.

    for example:
    Code:
     cout << "hello\n";
     cout << "hi!\n";
    the result would be:

    hello
    hi!_

    how will i get to this result?

    hello
    hi!
  • whodgson
    Contributor
    • Jan 2007
    • 542

    #2
    add to your code the following:
    Code:
    cin.get();
    return 0;

    Comment

    Working...