Adventures in Programming

Site Stats
APCS schedule | APCS Login | APCS Forms | APCS Resources | APCS Archive | APCS Stuff
C++ schedule | C++ Login | C++ Forms | C++ Resources | C++ Archive | C++ Stuff
Adven schedule | Adven Login | Adven Forms | Adven Resources | Adven Archive | Adven Stuff
Stats schedule | Stats Login | Stats Forms | Stats Resources | Stats Archive | Stats Stuff

Blank Space

In most cases extra blank spaces are ignored. For example this program -

#include<iostream.h>
int main()
  {
      cout <<"Hello World" << endl;
      return 0;
   }//end main

could be written with this syle -

#include<iostream.h>


int              main()
  {
      cout     <<         "Hello World"        <<          endl;
      return            0           ;
   }//end main

Both will compile and run the same. This will also run and compile as the first -

#include<iostream.h>
int main()
  {
      cout

       <<

 

              "Hello World"

         << endl

 

 

                ;
      return

 

 

                0

 

 

                 ;
   }//end main

 

 

 

 

Updated: Saturday, December 22, 2007 9:23 AM

About Us | Site Map | Contact Us | Search | ©2005 brentwoodhigh.com