C++ is a powerful, high-performance programming language developed by Bjarne Stroustrup as an extension of the C language. It supports both procedural and object-oriented programming, making it a popular choice for building software systems, games, operating systems, and real-time applications.
#include <iostream> using namespace std; int main() { cout << "Hello, World!"; return 0; }
#include <iostream>
: Includes the input-output library.using namespace std;
: Lets you use standard functions like cout
without prefixing with std::
.int main()
: Starting point of every C++ program.cout
: Prints text to the screen..cpp
extension.g++
(GCC) to compile the file.Try modifying the βHello, World!β message to display your name. Example:
cout << "Hello, I am John Doe!";
C++ is a versatile language that gives you full control over system resources and code structure. Itβs a great foundation for understanding both procedural and object-oriented programming. In upcoming lessons, you'll learn about variables, data types, functions, loops, and more!
Help others discover Technorank Learning by sharing your honest experience.
Your support inspires us to keep building!