how yo use try and catch in c++ code example Example: c++ try try { //do } catch (...){ //if error do }