← SEARCHABLE ARCHIVE
C / C++ · 2026-05-07

C++ from Basics to Mastery — Part 1

Why should we learn C++?

INTERACTIVE READING MODE →

The articles written on this blog were created with the goal of teaching. Also, the information in the article may be incorrect, so please be careful.

#include <iostream>

int main() {
    std::cout << "Hello World!" << std::endl;
    return 0;
}

This code is the most basic and the first code to learn that prints Hello World in the C++ language.

If you have tried Python, the std::cout part or std::endl may not be intuitive. Still, why do people leave over easier human-friendly languages ​​like Python? Should we use C++, a machine-friendly language?

The answer is, “It depends on the purpose.” Python is so easy that you can get started right away even if you have never programmed before. Nevertheless, the main reason for using C++ is speed. Because Python is an interpreted language and C++ is a compiled language. It can achieve speeds that are incomparable to Python.

More than a few lines of Python code, even as a meme on the Internet, There are also examples showing that hundreds of lines of code in C++ are faster.

Of course, C++ is not a better language than Python. As I said, languages ​​have different uses and are not good or bad.

Programs such as games that value speed I will choose C++, Prototypes where productivity is important, or programs where execution speed is not important I will choose Python.

good night. It turns out that programming languages ​​have different purposes. However, there will be unanswered questions. If C++ inherited the C language and added object-oriented features, Why is C++ not replacing the C language? You will think:

To conclude, C++ merely inherited the lineage of the C language. It has changed to the extent that it is correct to view it in a different language. The C language is much more hardware friendly, C++ has developed to support high-level abstraction, making it easier to systematically design large programs. Also, there are more safety devices than C. C began to be used for hardware and OS, and C++ was used for programs that required complex design. In the end, both had different goals.