Contrary to the title C++ is not the language you should be learning if you are looking for an introduction into the world of programing. While it was the first full programming language I learned it is more often used by schools in an upper level course after students have already learned some introductory programing. The language was created in 1983 by Bjarne Stroustrup with an emphasis on efficiency and performance.
C++'s creator on the 'advantages' of his language |
C++'s biggest advantage is rooted in its memory manipulation abilities and its use of pointers and references. One of the biggest memory pit falls of other languages is their use of copies, when passing around information between places they make a copy of that data each time it goes somewhere new. As you might imagine this can quickly take up a lot of space, so C++ approaches this problem differently using pointers and references. Although they are often very complex to implement the concepts behind these two things is pretty simples. Pointers are like a trail sign or a highway sign, they tell you where and what something is in a place totally separate from the original thing. References are like nicknames for a person, like 'Bill' and 'William', they both mean the same thing and refer to the same person its just 2 different ways of saying it.
I hope this has introduced you to some of the differences between C++ and other languages. If you are interested in programming I would recommend a higher level language like python first, which can be found here. However if C++ is really what you want this site can help you get started into the language.
No comments:
Post a Comment