I've made my program run at least after removing a lot of mistakes i've had before, i'm beginning to fix it and make it more logical. for now i'm trying to see how to catch errors correctly, without terminating the program. for instance, if someone gave an input of something that is not an int in an int field, i want to just print an error, discard the value and continue on with the program flow, instead of just terminating the program. how should i do that correctly?
link to hopefully my latest code lol:
https://onlinegdb.com/rJc8Fdksq
after that i'll put the cases of the file in a struct or enum and will begin to make it look better and more elegant, but right now after it's kinda working i prefer to improve functionality and error checking.
if you spot any error that i missed, please tell me, hoping i could fix it.
thank you so much for your effort, i learnt so much thanks to your comments, and this program is a journey for me in learning c++.
so glad i joined this great place!