| <<< First C++ program, cont. | Index | First C++ program, cont. >>> |
#include <iostream>
int main()
{
std::cout << "Hello, World!";
return 0;
}
Individual programming statements contain semicolon ";" at the end.
This is part of C++ syntax: individual statements must finish with semicolons.
Interestingly, semicolon is part of the statement itself, and is not a separator between multiple statements.
| <<< First C++ program, cont. | Index | First C++ program, cont. >>> |