Learn how C++ program structure works, from the perspective of functions and data. This sample chapter covers function definitions, inline functions, recursion, pointers to functions, and functions with default arguments. It also describes structures and unions, member functions, and passing structures and unions as arguments. Additionally, you’ll learn about C++ storage classes, exceptions, namespaces, and free store memory. Another dev article, named “Using Java Development Tools in Eclipse” is also available.
I haven’t read all of it, but it seems pretty goot.
If you want to learn C++ the best book is proabbly C+= From teh Ground Up Third edition, it’s only a litttle over 500 pages if you minus all the .net garbage at the end and it covers everything.
It only takes about ten seconds to see that the author is not up to date on Standard C++. This is the type of low quality C++ that prolifferates.
Difficult. While the article itself is pretty cool, it is important to point out that the language described in it is C, NOT C++. Throwing in one or two C++ only constructs and using new instead of alloc does not turn this into C++. And as Anonymous stated it is exactly the way of programming that gives C++ programs their bad name. But that is unjust, because it is not C++.
(Don´t get me wrong, C is a very cool language, C++ is an even cooler language and this article is done well, it is just labeled wrongly )
so – can anyone point us to some articles explaining the C++ way – for i fear i may be using C++ from this C perspective!
Hi tech_user,
still one of the best books around is the good old “The C++ programming language” by Stroustrup himself. Especially the later chapters show much of what is so valuable in C++ and why it is so powerful. He also stresses the differences between C++ and C and how to “misuse” C++ as a “C with new keywords”.
There are a couple of good resources to check for modern C++ techniques:
The C/C++ User’s Journal at http://www.cuj.com
Herb Sutter’s Column at http://www.gotw.ca
The C++ in depth series of books http://www.awprofessional.com/series/index.asp (7th from top)
The Boost and Loki websites http://www.boost.org http://www.moderncppdesign.com/
And as always, comp.lang.c++, comp.lang.c++.moderated, and comp.std.c++ are excellent sources of information.
tech_user,
I highly recommend “The Design and Evolution of C++” (D&E), also by Bjarne Stroustrup. In the the D&E Mr. Stroustrup chronicles the evolution of C++. Most books introduce the features of C++ and explain their syntax. The D&E provides the necessary background to understand why and when to use a particular feature.
If you want a good book te learn C++ check out: Thinking in C++. You can download the digital (HTML) version for free: http://mindview.net/Books