High Level Language Programming


 

Benefits of High-Level Languages

 


For a comparison of programming languages, there is an interesting web site that lists a program to write all the verses of "Ninety Nine Bottles of Beer on the Wall"! One C++ version looks like this:


       // C++ version of 99 Bottles of beer
       // programmer: Tim Robinson timtroyr@ionet.net
       #include 

       int main()
           {
           int bottles = 99;
           while ( bottles > 0 )
               {
               cout << bottles << " bottle(s) of beer on the wall," << endl;
               cout << bottles << " bottle(s) of beer." << endl;
               cout << "Take one down, pass it around," << endl;
               cout << --bottles << " bottle(s) of beer on the wall." << endl;
               }
           return 0;
           }

For other language versions click here.

[Prev][TOC][Next]

CS1104 Main Page
Last Updated 11/27/2000
© L.Heath, 2000, modified by J.A.N. Lee,