I'm trying to put the basics of any c++ program consists of 3 files. One for the main function, and one for class definition and another for the member functions of the class.
But I get an error when I compile the program. I have checked it so many times and couldn't figure it out.Could you help me?
I need a strong basics to continue learning more complicated stuff in C++. If you have any advice to make it well-built.
Sometime #ifndefine is added in the header file, is it necessary here?
That's odd. You shouldn't be getting that error...I have no idea why that would be happening unless somehow sort.h isn't getting included, but that would be giving you a different error.
Btw, in this case your wouldn't need #ifndef stuff in your header file, but it's probably a good idea to learn to do it anyway.