is there try catch in c++ code example
Example 1: c++ try
try {
//do
} catch (...){
//if error do
}
Example 2: C++ try catch
try {
//do something
} catch (const std::exception& e) {
std::cout << e.what(); // information from error printed
}