Lesson 1 of 45
C++Lesson 1: Introduction to C++
8 min
Course progress2%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 1 of 45
C++8 min
Keep these ideas in mind as you work through the lesson.
C++ is a statically typed, compiled language that builds on C by adding object‑oriented, generic, and functional features. It was created by Bjarne Stroustrup in the 1980s to combine efficient low‑level control with high‑level abstractions.
In modern software development, C++ powers everything from game engines and real‑time graphics to operating systems and high‑frequency trading platforms. Its zero‑overhead principle means you only pay for what you use.
#include <iostream>
int main() {
std::cout << \"Hello, C++ world!\" << std::endl;
return 0;
}
This minimal program demonstrates:
#include <iostream>) that pulls in the I/O library.main function, which is the entry point for every C++ executable.std::cout for writing to the standard output stream.return 0; signalling successful termination.Tip: Compile with
g++ -std=c++20 -Wall -Wextra hello.cpp -o helloto enable the latest language features and helpful warnings.