1 Programming Fundamentals
1 Programming Fundamentals
• int main() {}
• The starting point of all C++ programs is the main function.
• This function is called by the operating system when your program is executed by the computer.
• { signifies the start of a block of code, and } signifies the end.
• Example:
• #include <iostream>
• using namespace std;
• int main() {
• cout << "Hello World!" << endl;
• return 0;
• }