Sample Program Using Most Features of Classes

I am including this program here just for reference. It is one of my projects from a class I am taking. The program heavily uses many of the features of C++ that we have covered in class so far, such as classes, structs, private/public protection, string manipulation, pointers, file input, and dynamic allocation. It also has some features we haven't covered such as operator overloading, and friend functions, as well as features that we probably won't have time to cover such as the Standard Template Library. As you can see, none of the stuff you learn in CS12 really ever goes away, you will use it over and over. The assignment is divided into several files. The header files usually contain only class and struct declarations as wel as type definitions. The .cpp files contain the actual functions that belong to the class. This is the generally accepted standard for breaking up your program into several files. The advantage of this is that the more files you break it up in, the easier is to re-use specific portions of your code by just simply copying a file over to a new project.