<<< First C++ program, cont. | Index | First C++ program, cont. >>> |
#include <iostream> int main() { std::cout << "Hello, World!"; return 0; }
Opening brace "{" indicates beginning of our main function. Closing brace "}" ends the function. The braces specify function body.
Function body contains any programming code enclosed inside the braces.
<<< First C++ program, cont. | Index | First C++ program, cont. >>> |