29 Apr 2010
Updated: 29 Apr 2010
Rating: 3.27/5
Votes: 11
Popularity: 3.41
Licence: CPOL
Views: 9,400
Bookmarked: 2
Downloaded: 0
Use C++ exceptions:try{ if (condition1_fails) throw 1; ... if (condition2_fails) throw 2; ... ... if (conditionN_fails) throw N; PerformActionOnAllSuccess(); DoNormalCleanup();}catch (int condition){ printf("The condition %d fails!\n",...
|