This might be a to general question, however I am trying to learn C++ in the last few days and what I have noticed in a lot of example code, is, if errors are handled, the program is not aborted in that case.
So for example, I just have a wrong command line argument, I have seen code like:
if (argument wrong){
std::cerr << "Invalid argument\n";
}
But there is no aborting of the program. In my C code I would usually do
exit(EXIT_FAILURE)
So is this wrong to use in C++ or how should I handle these situations?