User Tools

Site Tools


cpp:exception

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
cpp:exception [2019/05/06 07:13] – [Διαχείριση Εξαιρέσεων] gthanoscpp:exception [2019/05/06 07:15] – [Δημιουργία και διαχείριση της εξαίρεσης] gthanos
Line 164: Line 164:
         break;         break;
       case 4:       case 4:
-        throw string("C++"); //throw a string+        throw string("C++"); //throw a std::string
         break;         break;
       case 5:       case 5:
Line 170: Line 170:
         break;         break;
       default:       default:
-        c = -10; throw c;  // throw a character (default option)+        c = -10; throw c;  // throw a character
         break;         break;
     }     }
cpp/exception.txt · Last modified: 2023/05/15 14:01 by gthanos