This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | Next revision Both sides next revision | ||
|
cpp:class_templates [2019/05/04 04:46] gthanos [Ένα πιο σύνθετο παράδειγμα] |
cpp:class_templates [2019/05/14 10:08] gthanos [Templates κλάσεων] |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| <code cpp Box.hpp> | <code cpp Box.hpp> | ||
| + | #ifndef _BOX_HPP_ | ||
| + | #define _BOX_HPP_ | ||
| + | |||
| template < | template < | ||
| class Box { | class Box { | ||
| Line 31: | Line 34: | ||
| return out; | return out; | ||
| } | } | ||
| + | #endif | ||
| </ | </ | ||