Adventures in Programming

Site Stats
APCS schedule | APCS Login | APCS Forms | APCS Resources | APCS Archive | APCS Stuff
Java schedule | Java Login | Java Forms | Java Resources | Java Archive | Java 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

Hello World Program

Our first program.

Required file names : <lastname>=helloworld1

Enter the following code -

 

 

 

 

 

 

Compile and Run - You will get this output :

 

 

 

 

 

 

 

 

Note the Press any key to continue - where did that come from? It is add by the compiler so the output window will stay open. We must always make sure this message is on a line by itself. To do this we must add a return or line feed. Modify your code by adding << endl , compile and run.

 

 

 

 

 

 

 

Compile and run - looks much better. Remember to always make sure the Press any key is on a line by itself.

Copy and paste the sample output into the source code and submit.

 

 

 

 

 

Updated: Tuesday, January 5, 2010 12:26 PM

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