New course! Every coder should learn Generative AI!
Try a free lesson0
Hey how can i develop a better logic for this.
2 Answers
+ 1
Do not use C functions in C++, use enums, don't use goto. Try to divide this code into separate functions.
0
You can use the "enum" type and switch for the month !!