c++ - Is it possible to define multiple classes in just one .cpp file? -
I am working on a project for school and the instructor urges that all the code is one. Go to the CPP file (on your part for easy grading) I would like to define several sections within this file, will I participate in any kind of problem in doing so?
There is no rule for you to follow (like Java). You are free to place nominated files (in addition to suffix) to place and name sections.
However another question of this is that it is good practice (its not!).
Comments
Post a Comment