Something similar to this?
#include <iostream>
using namespace std;
int main()
{
cout << "Press [enter] to continue...";
cin.get();
cout << "Hello\n";
return 0;
}
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
>Ya but how do i get it to print hello on paper.
Start by being more specific about your compiler and OS. To do it "right" is a lot of work, but most of the time you can do it pretty easily with a compiler/system-specific solution.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
If you have Windows and Dev-C++ then you are in luck. Look at the code snippet:
http://www.daniweb.com/code/snippet122.html
This might be a little overkill since it allows you to set the font, wordwrap and more. Trim it back to what you need!
vegaseat
DaniWeb's Hypocrite
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417