cpp:function_try_blocks
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
cpp:function_try_blocks [2019/05/15 08:16] – gthanos | cpp:function_try_blocks [2019/05/15 08:17] – gthanos | ||
---|---|---|---|
Line 45: | Line 45: | ||
</ | </ | ||
- | Επιπλέον ο κατασκευαστή της κλάση Person παράγει ένα // | + | Επιπλέον ο κατασκευαστή της κλάση Person παράγει ένα // |
- | + | ||
- | <code cpp BadName.hpp> | + | |
- | class BadName : public std:: | + | |
- | public: | + | |
- | const char* what() { | + | |
- | return " | + | |
- | } | + | |
- | }; | + | |
- | </ | + | |
<code cpp Person.hpp> | <code cpp Person.hpp> | ||
Line 81: | Line 72: | ||
delete firstname; | delete firstname; | ||
} | } | ||
+ | </ | ||
+ | |||
+ | <code cpp BadName.hpp> | ||
+ | class BadName : public std:: | ||
+ | public: | ||
+ | const char* what() { | ||
+ | return " | ||
+ | } | ||
+ | }; | ||
</ | </ | ||
cpp/function_try_blocks.txt · Last modified: 2022/05/23 06:05 by gthanos