This shows you the differences between two versions of the page.
|
cpp:exception_specifiers [2019/05/06 07:24] gthanos created |
cpp:exception_specifiers [2019/05/06 08:50] gthanos |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| Τους παραπάνω ορισμούς είναι δυνατόν να τους συναντήσετε στις // | Τους παραπάνω ορισμούς είναι δυνατόν να τους συναντήσετε στις // | ||
| + | |||
| + | Στο παρακάτω παράδειγμα, | ||
| + | |||
| + | <code cpp exception_specifiers.cpp> | ||
| + | #include < | ||
| + | using namespace std; | ||
| + | |||
| + | int function1() throw(std:: | ||
| + | throw new std:: | ||
| + | return 10; | ||
| + | } | ||
| + | |||
| + | int main() { | ||
| + | cout << function1() << endl; | ||
| + | } | ||
| + | </ | ||
| /* | /* | ||