Introduction
The curly braces {}
are used to group statements together. In the main
function, the curly braces contain these lines:
std::cout << "Time flies like an arrow." << std::endl;
std::cout << "Fruit flies like a banana." << std::endl;
This allow these lines to be run, unlike the last line which is outside the main
function curly braces.
Make the program also prints out - Groucho Marx
after the other lines.
std::cout << "- Groucho Marx" << std::endl;
inside the main
function curly braces after the last line in it.