I am using eclipse in Ubuntu 12.04. I use some exceptions in my program and when they are caught it gives me cout correctly. But the program continues to the end. Is there a way
Use the function exit: exit(1);, where 1 is the exit code (normally non-zero signals an error). You can use also abort() if you consider the exception as critical error.