Did you have your compiler produce object files for both Gradebook.cpp and your test driver, then have the linker link them together? It sounds like you aren't linking the main driver since it isn't finding the constructor.
@Zhuge what I did is as i said in the first post and then tried to use them on another project but it gives me the error.
@ mutexe i don't think using " using namespace std; " or std:: on every call is going to matter in this case and yeah I put the files in the same project that I tried to test them on.
No. All the header does is include its contents in the source code. Anything that's defined in the header file, will also be defined in the source code that includes that header file.
It doesn't magically cause the source file to be linked against any other object file. You have to actually tell your IDE/compiler to link against other object files you need.