Quote Originally Posted by ichiben View Post
Oh. My professor has shown in his lecture sample code in this same format with the class interface in a header file and the class implementation in a cpp file that includes the header file.
In real world usage those files would be included in a larger project, which will have a main function somewhere else. Or, you could make them into a library instead of an executable program, you just have to change your linker settings.