Exercises, examples and other material relating to training module C237. This topic is presented on public courses Learning to program in C++
, C++ for C Programmers
, C and C++ Programming
As programs grow, so does the chance of several programmers
using the same function method or class name. Namespaces provide
the C++ programming team with a means of further isolating sections
of logic and data so that the language can continue to be used
very efficiently even for the largest of appliactions.
|Articles and tips on this subject||updated|
|3066||Separating groups of variables into namespaces|
If your program's going to grow in size beyond a certain point, you'll need to use some sort of namespace or package to segment global names into different groupings - moving from a single name to a forename / surname type system, if you like to think of it that way.
In C++, it's namespaces - see [here] ...
Examples from our training material
|Ns.cpp|| Definition and use of namespaces|
|ave.c|| Calling a C function from a C++ main program|
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from http://www.training-notes.co.uk
Topics covered in this module
Creating and using a namespace.
using, Namespace aliases and the unnamed namespace.
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.