Forced Breaks

This is a discussion on Forced Breaks within the C++ Programming forums, part of the General Programming Boards category; I don't know how to make a forced break in C++. How do you do? (A forced break is like ...

  1. #1
    Registered User yodoblec's Avatar
    Join Date
    Jun 2003
    Posts
    27

    Forced Breaks

    I don't know how to make a forced break in C++. How do you do? (A forced break is like hitting enter when typing.)

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    2,662
    For output?

    You can use '\n' or endl:

    cout<<"Hello world.\n"<<"This is on the next line.";
    cout<<"Hello world."<<endl<<"This is on the next line.";

  3. #3
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    i think he means kinda like when you type to the end of the screen, he wants it to wrap around...
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Forced moves trouble!!
    By Zishaan in forum Game Programming
    Replies: 0
    Last Post: 03-27-2007, 07:57 PM
  2. Forced to use constants
    By Night_Blade in forum C++ Programming
    Replies: 6
    Last Post: 08-08-2005, 05:30 PM
  3. sentence word breaks...
    By aker_y3k in forum C++ Programming
    Replies: 4
    Last Post: 10-13-2003, 12:52 PM
  4. Breaks
    By wuzzuppy_123 in forum C++ Programming
    Replies: 6
    Last Post: 05-09-2003, 01:31 PM
  5. switches and breaks
    By volk in forum C Programming
    Replies: 11
    Last Post: 01-10-2003, 08:55 PM

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