Setting up a project
I have four files in a project. Two header files and two .CPP files. Main.cpp, Main.h, Object.h, Object.cpp.
In Main.cpp I have the code, #include "Main.h".
In Main.h I have the code, #include "Object.h".
And in Obect.cpp I have the code, #include "Object.h".
To my understanding this should link them all and it should work correctly. The problem I'm seeing is that in Object.cpp all the variables that I declared are coming up undeclared even know the syntax and variable names are correct. I can post my code but it would take up more than 1100 lines. I'll post it if you can't help me with just the information I provided. Thanks.
I'm going to post my project.
Note: If you're in my class (you know who you are) don't think about using any of this code. First off you'll have trouble getting it to work lol and second the teacher already has a copy of it and will know if you used this.
The first two files are the driver programs written by the instructor. It will use the code I wrote. The second two files are for the code that I wrote. Thanks so much if you help!
All that code posted and no error messages.
My guess is that you need to add String:: to all your String member function definitions.
wow I feel like an idiot. Thanks.
yaar tu mast banda hai...poora project de daala...chummi dene ka man kar raha hai...