Introduction

1.1 - Hello world


Hello and welcome to the Byte Sized C++ tutorial series. Here you can learn C++ programming by doing tiny byte-sized lessons.

This is the classic "Hello world!" program. It prints out Hello world! to the console output.

Just like every C++ program, it runs the code inside the main function. Here the main function contains the line std::cout << "Hello world!" << std::endl; which prints out Hello world! and a new line.

Task

Read the code. Run the program and see the output.

  • Press the Run button.
#include <iostream> int main() { std::cout << "Hello world!" << std::endl; }