Skip to main content

1.10) Exercise 1


  1. Create a directory for these exercises. Start a terminal window and move into the directory that you've created.
  2. Start up a programmer's text editor and carefully type in the code from the "Hello World!" program shown previously.
  3. Save your code as a file called hello.cpp, in the directory created earlier.
  4. Compile hello.cpp. If you see any errors, check hello.cpp carefully to make sure you have typed it in exactly as shown.
  5. Run the compiled program in the terminal window.