Exercises, examples and other material relating to training module C237. This topic is presented on public courses
Learning to program in C and C++,
C++ for C Programmers,
C and C++ Programming,
Learning to program in C and C++,
C and C++ Programming
Background
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] ... | 2010-12-04 |
Examples from our training material
Ns.cpp | Definition and use of namespaces |
ave.c | Calling a C function from a C++ main program |
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
[here].
Topics covered in this module
Creating and using a namespace.
using, Namespace aliases and the unnamed namespace.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Ruby,
Lua,
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses 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.