About C.doc

(21 KB) Pobierz
About C++

About C++

C++ "C Plus Plus", is a programming language, Bjarne Stroustrup developed it in 1979 at Bell Labs as an enhancement to the C programming language and originally named "C with Classes".

It was renamed to C++ in 1983.

C++ enjoys wide use in the software industry.

 

Etymology

According to Stroustrup: "the name signifies the evolutionary nature of the changes from C".

During C++'s development period, the language had been referred to as "new C", then "C with Classes". The final name is credited to Rick Mascitti (mid-1983) and was first used in December 1983. When Mascitti was questioned informally in 1992 about the naming, he indicated that it was given in a tongue-in-cheek spirit. It stems from C's "++" operator (which increments the value of a variable) and a common naming convention of using "+" to indicate an enhanced computer program. There is no language called "C plus". ABCL/c+ was the name of an earlier, unrelated programming language.

 

Programming

To programme in C++ you need have special program (Dev-C++) for writing and compiling codes.

The simplest program in C++ is "Hello World", code of "Hello World" is:

 

#include <iostream>

using namespace std;

int main()

{

cout << "Hello, world!"<<endl;

return 0;

}

 

This program is writing on screen: Hello, world!

 

Compatibility

Producing a reasonably standards-compliant C++ compiler has proven to be a difficult task for compiler vendors in general. For many years, different C++ compilers implemented the C++ language to different levels of compliance to the standard, and their implementations varied widely in some areas such as partial template specialization. Recent releases of most popular C++ compilers support almost all of the C++ 1998 standard.

 

With C

C++ is often considered to be a superset of C, but this is not strictly true. Most C code can easily be made to compile correctly in C++, but there are a few differences that cause some valid C code to be invalid in C++, or to behave differently in C++.

One commonly encountered difference is that C allows implicit conversion from void* to other pointer types, but C++ does not. Another common portability issue is that C++ defines many new keywords, such as new and class, that may be used as identifiers (e.g. variable names) in a C program.

 

Learning English

In C++ we always use English language and we can very fast learn a bit of English words.

 

 

 

 

Zgłoś jeśli naruszono regulamin