Wiki/Code/CPP/CPP-Basics.md
2023-12-20 16:30:40 +01:00

281 B

Structure of a Program

Every C++ program must have a function named main (all lower case letters). When the program is run, the statements inside of main are executed in sequential order.

#include <iostream>

int main()
{
std::cout << "Hello World!";
return 0;
}