Hello,
I want to create a question on CodeRunner of type "C++ program". I have done it before for programs where students need to copy and past their code (normally main.cpp type of file ). Now, I am preparing a question where students need to submit the cpp file that includes the main function of the program in addition to two (2) other files for a class that will be included and used in the main function file. Basically a user-defined class as header file (e.g. "classX.h" for the class declaration and "classX.cpp" for the class implementation.
I tired to include the two files in the "sample answer attachment", but apparently it is not the correct way to do it as when I save, it shows list of errors as :
/usr/bin/ld: __tester__.cpp:(.text+0x26e): undefined reference to .....,>
How can I add the user-defined class header file and its implementation (cpp file) to the question. Students also will have to include and therefore attach similar files within their submission.
I would really appreciate your help regarding that.
Thanks in advance.