Handling multiple exception
So is it possible/good practice to do something like:
1 2 3 4 5 6 7 8 9
|
try
{
int numFrames = atoi(argv[1]);
frame* frameArr = new frame[numFrames];
}
catch(exception& e)
{
std::cout << e.what() << std::endl;
}
|
If this is bad, is there a better way to go about this?
Topic archived. No new replies allowed.