|
|
|
|
|
|
|
|
|
|
|
|
And then you'll encounter... 1. The inclusion guards do not have corresponding #endifs. 2. class is a C++ keyword, Class is not. 3. You're missing some semicolons (but you'll find them by compiling). 4. Do not include .cpp files. 5. using namespace std; is general frowned upon in header files (although for small assignments, I doubt you'll run into any trouble). 6. In Car.cpp, person is not a type; Person is. Also note the inconsistent capitalization of file names and class names. 7. get_age and get_name should have empty argument lists, like: get_age(). 8. You mix >> and getline, which will probably cause you a headache. |
#include <string>
?