Chapter 4. Programs and Libraries

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

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.167.183