I am trying to compile the following code to calculate the average of grades but I get the error that GradeBook.h not found. I am primarily a student of java and I have been able to work similar codes in java without any hitch. Will be grateful for clarification as to what I should have done to avoid the error.
Let me explain what I am doing.
1. I am using MS vis C++6.
2. I make a project directory and from File -> New, I select the 'C/C++ Header File' and add GradeBook file. I can find the GradeBook.h file in the directory.
3. Then, from File -> New, I select C++ Source File and add the remaining two codes given in post 1.
4. Then I compile and get the error ...C2011 - class type redefinition.