I just started C++ today.....but what I wanted to know is how to make new lines after cout<<. The only time it makes new lines is after 'cin>>'.
In other words.....what is the code for making new lines? Like in html, it's <br>.
I just started C++ today.....but what I wanted to know is how to make new lines after cout<<. The only time it makes new lines is after 'cin>>'.
In other words.....what is the code for making new lines? Like in html, it's <br>.
Code:cout<<"Yay!\nNewline\nAnother one";
another, more noob friendly way:
Code:cout << "line goes here." << endl;
Last edited by glUser3f; 12-18-2003 at 06:01 PM.