C and C++ books-page11 Posted on: December 19, 2008 at 12:00 AM
In early 1990, C++ was chosen as the implementation language for a huge telecommunications project at Ellemtel Telecommunications Systems Laboratories in Stockholm, Sweden.
C and C++ books-page11
Strength of C++ In early 1990, C++ was chosen as the implementation language for a huge telecommunications project at Ellemtel Telecommunications Systems Laboratories in Stockholm, Sweden. A programming standard for the project was written by Erik, a document that was later maintained by the two of us, working as the C++ support group. Then, in 1991, there was a discussion about programming standards in the news group comp.lang.c++. Mats wrote a message describing the structure of our document. Suddenly we received an e-mail from Bjarne Stroustrup, the initial inventor of C++, asking if he could have a look at the document. The fact that it was written in Swedish was no problem to him, since he was born in Denmark, and Danish is fairly close to Swedish. The document was initially only meant for internal use, but shortly after Bjarne's e-mail we convinced our managers that it would be a good idea to make the document available to the public. By doing that we could use the
Internet to review and improve our rules and recommendations. A few months later the document was translated into English and made available for anonymous ftp.
C++ Imagine that you are about to finish a relatively large program, one that has taken a few weeks or months to write and debug. Just as you are putting the finishing touches on it, you discover that it is either too slow or runs out of memory when you feed it a realistic set of input data. You sigh, and start the task of optimizing it.
But why optimize? If your program doesn't fit in memory, you can just get more memory; if it is too slow, you can get a faster processor.
I have written Optimizing C++ because I believe that this common attitude is incorrect, and that a knowledge of optimization is essential to a professional programmer. One very important reason is that we often have little control over the hardware on which our programs are to be run. In this situation, the simplistic approach of adding more hardware is not feasible.
is C++ C++ is a general-purpose, platform-neutral programming language that supports object-oriented programming and other useful programming paradigms, including procedural programming, object-based programming, generic programming, and functional programming.
C++ is viewed as a superset of C, and thus offers backward compatibility with this language. This reliance on C provides important benefits:
* Reuse of legacy C code in new C++ programs
* Platform neutrality
* Relatively quick migration from C to C++
overloading of C++ Programm Object-oriented (OO) programming languages treat user-defined types as first-class citizens. One of the manifestations of this principle is that programmers can extend the semantics of built-in operators to support user-defined types as if they were built-in types. Such an extension overloads rather than overrides the predefined meaning of an operator.
C++ requires at least one of the operands of an overloaded operator to be a user-defined type.