my entire code is not shown

Discussion in 'C Programming' started by emeraldsky23, Jan 16, 2011.

  1. emeraldsky23

    emeraldsky23

    Joined:
    Jan 15, 2011
    Messages:
    4
    i was doing the classical 'bottle of beer' code for c++ and it worked out pretty well except for the fact that when i ran the code, a few lines from the beginning of the song aren't shown if i uses newline characters. Here is the code:
    PHP:
    #include <iostream>

    using namespace std;

    int main()
    {
        
    int bb 100;
        while (
    bb )
        {
            
    cout << bb << " bottles of beer on the wall, " << bb << " bottles of beer." << endl;
            
    bb--;
            
    cout << "Take one down and pass it around, " << bb << " bottles of beer on the wall\n";
        }
    }
     
    emeraldsky23, Jan 16, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mitchua
    Replies:
    3
    Views:
    1,203
    Mitchua
    Jul 14, 2003
  2. Johann Blake
    Replies:
    0
    Views:
    1,365
    Johann Blake
    Jun 26, 2003
  3. Johann Blake
    Replies:
    4
    Views:
    1,539
    earbullet
    Dec 9, 2004
  4. WouterWeb.nl

    Datagrid not shown?

    WouterWeb.nl, Jan 27, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    360
    Michael
    Jan 27, 2004
  5. Mete Akalýn
    Replies:
    1
    Views:
    439
    Mete Akalýn
    Jul 25, 2003
Loading...

Share This Page