Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > my entire code is not shown

Reply
Thread Tools

my entire code is not shown

 
 
emeraldsky23 emeraldsky23 is offline
Junior Member
Join Date: Jan 2011
Posts: 5
 
      01-16-2011
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 Code:
#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";
    }

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IKE PSK not shown on ASDM 5.0? AM Cisco 1 09-22-2005 04:57 PM
NOT SHOWN. The page is not shown until refresh it ! Mete Akalın ASP General 1 07-25-2003 11:28 AM
[TABLE NOT SHOWN] problem with HTML::Parse Mitchua Perl 3 07-13-2003 11:38 PM
The designer could not be shown for this file... (Smart Device development) Johann Blake ASP .Net 0 06-26-2003 06:21 AM



Advertisments