Hello World! in C++

Published

2023-08-05

You are not required to use CLion for this class, but it is any easy-to-use IDE for C/C++. There is a free student license available. To download and install CLion, visit the JetBrains website and follow the appropriate directions for your OS. CLion runs on macOS, Windows, and Linux.

Alternatively, you can use a text editor (or other IDE) of your choice, and compile from the command line.

Here’s a short video showing how to download and install CLion.

Here’s a quick demo, showing how to create a new Hello, World! project in CLion.

For more information see the JetBrains CLion Quick Start Guide:

Comprehension check

  1. Every C++ program has a ______________ function.
  2. True or false? A return code of 0 typically means a program has failed with an error.
  3. std is the namespace for the C++ _______________ library.
  4. std::cout is a(n):
    1. function
    2. object
    3. header
    4. library
  5. Preprocessor directives all start with a ______________ character.

Answers: # / ʇɔǝɾqo ˙q / pɹɐpuɐʇs / ǝslɐɟ / uᴉɐɯ

Original author: Clayton Cafiero < [given name] DOT [surname] AT uvm DOT edu >

No generative AI was used in producing this material. This was written the old-fashioned way.

All materials copyright © 2020–2023, The University of Vermont. All rights reserved.