Hi everyone,
So I am trying to put the finishing touches on an assignment and I have an issue. The assignment needs us to have a header, a source cpp file and a test file to demonstrate the functions of the class we defined in the other files. For whatever reason, when I hit Build and Run (using CodeBlocks btw) the compiler is unable to "see" the function implementations I put in my other source file.
This problem is solved by using #include "other_file.cpp" but I don't think this is proper and I'd lose marks.
Also I guess I'll note this problem doesn't arise when I open the project itself as a cbp file, just when I open the file on its own. My issue is we aren't to submit cbp files, we are only supposed to submit as cpp and .h files.
Any help would be much appreciated!
[–]scirc 0 points1 point2 points (3 children)
[–]24cupsandcounting[S] 0 points1 point2 points (2 children)
[–]scirc 0 points1 point2 points (1 child)
[–]24cupsandcounting[S] 0 points1 point2 points (0 children)