Opinions regarding C++ programming practice
- by Sagar
I have a program that I am writing, not too big. Apart from the main function, it has about 15 other functions that called for various tasks at various times. The code works just fine all in one file, and as it is right now.
However, I was wondering if anyone had any advice on whether it is smarter/more efficient/better programming to put those functions in a separate file different from where main is, or whether it even matters at all. If yes, why? If no, why not?
I am not new at C++, but definitely not an expert either, so if you think this question is stupid, feel free to tell me so.
Thanks for your time!