putting text onto the next line...lol...noobie questions

This is a discussion on putting text onto the next line...lol...noobie questions within the C Programming forums, part of the General Programming Boards category; i started c++ about a week ago, with minimal knowledge about programming (did a bit of Java a few years ...

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    12

    putting text onto the next line...lol...noobie questions

    i started c++ about a week ago, with minimal knowledge about programming (did a bit of Java a few years ago). anyways, althoguh it's a noobie question, i'm wondering how put text onto the next line, e.g.

    Hello!
    Bye! <- whenever i type the code, it includes the bye on the first line; how do i make it go onto the next line?

    pretty noobish question, but hey, everybodies got beginnings

    thanks in advance,

    JOlszewski

  2. #2
    old man
    Join Date
    Dec 2005
    Posts
    90
    This is the forum where we talk about C, not C++ ... but try using '\n' in your string to output a newline. (I don't know much about C++ but I believe this is the same.)

  3. #3
    Registered User
    Join Date
    Jan 2006
    Posts
    12
    sorry, i meant c

    now that you tell me to use \n, i hit myself on the head , cause i just remembered that as i began to read your post lol...

    thanks,

    JOlszewski

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. text between the line
    By munna_dude in forum Linux Programming
    Replies: 1
    Last Post: 10-17-2007, 12:46 AM
  2. SSCANF help
    By mattz in forum C Programming
    Replies: 7
    Last Post: 12-10-2001, 03:53 PM
  3. Validating the contents of a char buffer
    By mattz in forum C Programming
    Replies: 3
    Last Post: 12-09-2001, 05:21 PM
  4. inputting line of text vs. integers in STACK
    By sballew in forum C Programming
    Replies: 17
    Last Post: 11-27-2001, 10:23 PM
  5. text line termination
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 09-09-2001, 04:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21