C++ appeared in 1983. Although I say it appeared, what was available in the early days was a translator to C, and the language specification was a process of trial and error. Since code written in C++ just becomes C, if there was something suspicious in the C++ system, it was either a human or the C compiler that would find the problem, so even if the interpretation of the language specification was not well understood, one could look at the results and deal with it.
When you start using C in earnest, the number of functions and structures used as libraries increases, and managing them becomes a problem. Generally, people would group them by using part of the name, but using long names was not only troublesome to type (there was no support from integrated environments), but the length limits of names that the linker could handle and the name space would start to run out, so people would try to get by with adding just a few characters, but then they would occasionally clash for some reason.
Also, when GUIs like XWINDOW appeared, writing code that put functions inside structures became common, and it was becoming difficult to write and maintain without a language that supported object-oriented programming.
History of C++
Additions in C++ include not only classes, but also function overloading, operator overloading, namespaces, exception handling, and templates. However, the point is that it is ultimately an extension of C, and you can reuse existing C code, or you can write most of it in the C style if you want (though checks are a bit stricter and there are some incompatible parts). For this reason, although C++ spread smoothly, code with potential bugs was not weeded out, and the inspection functions provided by the language could be bypassed depending on how you wrote it, so it continues to leave seeds of trouble for the future. Of course, being able to force things to work is something that is absolutely necessary for describing systems.
C++ -
As time went on, native compilers appeared, the handling of multiple inheritance and virtual functions stabilized, and by the 1990s, the language specification had settled down. During that time, OSs that supported GUIs also became widespread; Windows was struggling with C and libraries called SDKs, while Classic Mac was mainly using PASCAL-based languages. The PC OSs of this era did not support things like processes as we know them today, and resource protection and isolation were ambiguous, making them more like libraries than OSs, and if you didn't follow various complicated rules, the entire PC would freeze.
For that reason, the number of programs running on GUI OSs did not increase, and it became a vicious cycle where they would not run stably, so a system that supported objects like C++ was awaited as a development language, and in 1993, VC++ containing Windows objects called MFC finally appeared (this was a period of various misfortunes for the Mac).
Microsoft Visual C++ (Strictly speaking, it has supported C++/MFC since the 92 compiler)
What is interesting is that the basic objects were implemented as classes, and although C++-like templates were supported, they were only used in a limited way (dynamic arrays were also implemented as classes at the time). This led to a situation where you couldn't write Windows programs without knowing C++ (you could, but there were limitations), and C++ began to enjoy its own path. However, early MFC had many unreasonable aspects, and there were many cases where it wouldn't work even though I intended to use it according to the specifications. Perhaps MS knew this, as the development environment included source code, and I would find problems by compiling including MFC in debug mode and following it with a debugger. As a result, I often patched the MFC side, which was a state of 'so much for classes'. Through this experience, I felt that programming might have changed from a 'physics' world where laws can be applied properly to every corner, to a 'chemistry' world where even if the principles are correct, the expected reaction will not occur unless you follow the existing procedures (I now think it is a 'biological' era where you have to increase in number and survive, regardless of whether you are wonderful or useless).
Since then, languages like Java that support objects from the beginning have appeared and become popular, but C++ has the upper hand in performance because it can generate native code and optimize it powerfully. It is still widely used, but the strictness of the grammar is quite difficult, and the difficulty of writing code that the compiler will allow is quite high. It goes without saying that you need to design properly and write correct code, but even a single difference in const means the binary won't be generated, and there are probably very few people who can tell what is wrong just by looking at the error messages for mistakes involving templates. It takes quite a bit of skill to try writing it for now or to design it partially and add functions. In return, if you write it properly and squash the errors, you will rarely have trouble at runtime like in C, and you can afford to cut corners quite a bit when it comes to testing.
Of course, it is still true that C++ is an extended version of C, and you don't have to use all the features of C++, and it is still possible to gratefully use only some of its features and write the rest in C. For example, the IDE for the Arduino development environment, which is a microcontroller board, can use C++, but basically, it is just a matter of skillfully overriding the classes provided by the library, and you can use it by writing it like C without going deep into C++.
Arduino
Arduino Language = C/C++ Language? How Arduino Code Works
Page for playing with Arduino
C++ is very convenient and powerful, but compared to C, there are many concepts to learn, and it is quite difficult to master. I am thinking of opening a classroom for C++ sometime.
C++ Language Reference
Introduction to C++
Added 2026.3.3
Digest video by Sora
Explanation video by NotebookLM
Audio commentary by NotebookLM
The header image is my favorite C++ book that I have been using for a long time. It is quite thick.
#CPlusPlus #CLanguage #ProgrammingLanguage #Arduino #VisualC #MFC #Template #Class #ObjectOriented #GUI