Thread: How do I make new lines? by MEGA N00b

  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    6

    How do I make new lines? by MEGA N00b

    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>.

  2. #2
    Registered User
    Join Date
    Dec 2003
    Posts
    9
    Code:
    cout<<"Yay!\nNewline\nAnother one";

  3. #3
    Registered User glUser3f's Avatar
    Join Date
    Aug 2003
    Posts
    345
    another, more noob friendly way:
    Code:
    cout << "line goes here." << endl;
    Last edited by glUser3f; 12-18-2003 at 06:01 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 10-07-2008, 06:19 PM
  2. Win32 Common Controls in C++, how do i make and use them?
    By C+noob in forum Windows Programming
    Replies: 6
    Last Post: 01-09-2006, 11:53 AM
  3. Question about atheists
    By gcn_zelda in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 08-11-2003, 11:50 AM
  4. Replies: 3
    Last Post: 06-25-2003, 04:29 PM
  5. 'functions' in make?
    By mart_man00 in forum C Programming
    Replies: 1
    Last Post: 06-21-2003, 02:16 PM