cpp:exception_specifiers
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| cpp:exception_specifiers [2019/05/06 07:24] – created gthanos | cpp:exception_specifiers [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| 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; | ||
| + | } | ||
| + | </ | ||
| /* | /* | ||
cpp/exception_specifiers.1557127446.txt.gz · Last modified: 2019/05/06 06:24 (external edit)
