In the previous chapters, you have learned about the basic elements of C++: variables, expressions, arrays, control structures, and functions. To this point you have not written a program, and I've taken this approach deliberately. The usual approach would be to show you a program and promise to explain it later. Instead, using C++ interactively with UnderC allows you to play with functions and expressions directly. When you are familiar with functions and expressions, you can easily write real programs.
In this chapter you will learn
How to include header files and prototype functions
How to use namespaces to separate functions into families
How to compile and run a simple program with command-line arguments
How to bullet-proof programs by using exceptions
18.222.167.183