Sorry for posting another question on the same day... but I've run out of ideas for this one.
Basically, I'm making a simple program with a class (Car) and an object of that class (carA) with a header file, a class definition file, and the main program file. From the error I'm getting, error C2146: syntax error : missing ';' before identifier 'make' (error in line 9 of Car.h), it makes me think that the string type for one of the class members isn't being recognized or something, and I do have the #include <string> added. I'll post the three files of the program below.
Put #include "Car.h" FIRST in the cpp file. This will give you another error, because std::string isn't found when reading the header file. Don't worry about that, just add #include <string> in the header file (then you may remove it from the source file, but it doesn't matter).
It is a very good idea to always have your own header files first in the include list, because it will force you to include all necessary libraries in the header files. This makes it possible to include your header files in other files without getting errors.
EDIT: I see now that you already have "Car.h" first in the Car.cpp file, so you will have to include <string> in the header file to get it working even if you don't change the other cpp file.
Ok I tried including <string> in the header file, and it didn't work, and when I tried the std::string it said that std did not exist as a namespace. I also moved the include of my header file to the top in my main .cpp file. Still not working.
You have to include <string> in the header file AND replace ALL "string" with "std::string". The include should be between #define DATE_H and before class Car.
If that doesn't work, post your updated code, and the error message.
BTW: You should change DATE_H to something like CAR_H.