Thread: Any1 help with noob problem???

  1. #1
    Registered User jr2007's Avatar
    Join Date
    Oct 2003
    Posts
    16

    Talking Any1 help with noob problem???

    From my limited knowledge of c++ i created a program which converts celsius to farenheit. when the output is returned it has 'Press any key to continue' directly next to it.

    How can I move this to another line???

    Thanks for any help.

  2. #2
    root
    Join Date
    Sep 2003
    Posts
    232
    Code:
    cout<<'\n';
    This moves the cursor to the start of the next line. That's the best I can do without seeing your code.
    The information given in this message is known to work on FreeBSD 4.8 STABLE.
    *The above statement is false if I was too lazy to test it.*
    Please take note that I am not a technical writer, nor do I care to become one.
    If someone finds a mistake, gleaming error or typo, do me a favor...bite me.
    Don't assume that I'm ever entirely serious or entirely joking.

  3. #3
    Registered User jr2007's Avatar
    Join Date
    Oct 2003
    Posts
    16

    Smile Thanks

    Thanks for that.

    I forgot to attach the source file before but here it is now.

  4. #4
    Registered User
    Join Date
    Oct 2003
    Posts
    24
    -sorry for grave digging old posts-

    these four lines can be chopped into one

    cout << "Farenheit value is:";
    cout << Farenheit;
    cout << "\n";
    cout << "\n";

    into

    cout << "Farenheit value is:" << farenheit << "\n\n"<< endl;

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What is the problem here? (noob question)
    By p_m63 in forum C++ Programming
    Replies: 9
    Last Post: 07-10-2006, 02:50 AM
  2. Noob problem - function call
    By Ultraman in forum C++ Programming
    Replies: 4
    Last Post: 05-20-2006, 02:28 AM
  3. Noob problem with "for" statement
    By Ultraman in forum C++ Programming
    Replies: 4
    Last Post: 05-15-2006, 09:26 PM
  4. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 06:24 PM
  5. total noob with a problem
    By dwainpipe in forum C++ Programming
    Replies: 5
    Last Post: 03-07-2006, 07:48 AM