CS
: CPP
CsWiki :: LogIn

C++


Introduction



C++ (pronounced "C Plus Plus") is a superset of C. The language was originally developed by Bjarne Stroustrup at what was then AT&T Bell Labs in the early to mid 1980s. Like C, it is fast, powerful and flexible. The 2 languages are so closely related that it is often known as C/C++.

"++" is an operator in C that means increment by 1, meaning that C++ has something more than C. So what's the "++"? C++ added most of the object-oriented features that you know and (have been brainwashed to) love to C. C++ contains tons of features that you probably should never use, and it has many pot-holes that you must learn to avoid.

C++ aims to be a hybrid language: you can use C++ in a procedural way (the C way) or in a object-oriented way. The reason for this is for the backward compatibility with C.

Hence, it is not truly a (pure) object-oriented programming language. In fact, most of the libraries are C libraries. There exists only a few object-oriented libraries like iostream.h, fstream.h. However, there are more good C++ libraries available, for example, the GUI libraries Qt and wxWindows.

C++ is often compared with Java as Java is derived from it.

You need not to know C before learning C++. But once you understand C++, C, Java, JavaScript and any other languages with C-like syntax will be easy for you. So C++ is a good starting point for someone who have no programming background.


C/C++ Compilers





Tutorial





C++ Related