One main?

Cégep du Vieux-Montréal

Published on 2020-01-05

Is it acceptable to write a program with a menu to chose between the different problems and just one main with the individual problems in their own cpp's? Repeating the same code to open, read, and close files is slightly unbearable to me... 

Answers

Alexandre Pilon

Published on 2020-01-06

Hi, 

The CRC doesn't impose a way to do. The template are given to show you a structure. You are free to resolve the problem the way you want.