| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

HelloWorld

Page history last edited by PBworks 16 years, 2 months ago

HelloWorld is a standard first program in many languages.

It is always a very simple program, hard to screw up, but shows that the system works.

 

Type, don't copy and paste!

You should personally type each piece of code you come across. This will help you understand how to do it, and will help you recognize your mistakes.

 

Here is a version of Hello.Cpp that should work for you:


 

//My first program

//Mr. Connors

//1/28/08

 

#include <iostream> //this includes a whole program so you don't have to type it

 

using namespace std;

 

int main() //This is a function called main()

{ //This is a brace, it opens main()

 

 

cout << "Hello World!n"; //This prints Hello World! on the screen

 

system("Pause"); //This has the program wait for you before ending

 

} //this ends main

 


Comments (0)

You don't have permission to comment on this page.