Introduction

1.8 - Chapter 1 review


In chapter 1, we covered:

  • Printing with std::cout, the << operator, and std::endl for new lines.
  • The "string" literal.
  • Using curly braces {} to group statements.
  • Creating comments using //.
  • Using the #include directive to include <iostream> required for printing.
  • What does return 0 mean on the main function.

Task

Make a program which prints out Goodbye cruel world!.

  • Start by including the <iostream> header using #include.
  • Create the int main() function.
  • Inside the main function, create the line which prints out Goodbye cruel world!.
    • Use the std::cout, << operator, and std::endl.
// Good luck!