C++: Hello World

Key Points:

  • To comment items you will use the
    // this is a comment
  • At the beginning of your program you will use what is called a #include directive, which cause contents of another file to be placed into your program:
    #include <iostream>
  • You will also use namespaces in your program the most common one is std, which is for standard. 
    using namespace std;
  • The cout Object is used to display information on the screen to the user.
    cout << “Hello world!”;

View the Code!