cpp:class_templates_specialization
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cpp:class_templates_specialization [2021/06/04 17:44] – gthanos | cpp:class_templates_specialization [2022/05/26 10:47] (current) – [Εξειδίκευση της κλάσης Box στην περίπτωση που η παράμετρος είναι δείκτης σε χαρακτήρα] gthanos | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| #ifndef _BOXTPTR_HPP_ | #ifndef _BOXTPTR_HPP_ | ||
| #define _BOXTPTR_HPP_ | #define _BOXTPTR_HPP_ | ||
| + | |||
| #include " | #include " | ||
| + | |||
| template< | template< | ||
| class Box< | class Box< | ||
| Line 121: | Line 123: | ||
| #ifndef _BOXCHARPTR_HPP_ | #ifndef _BOXCHARPTR_HPP_ | ||
| #define _BOXCHARPTR_HPP_ | #define _BOXCHARPTR_HPP_ | ||
| + | |||
| + | #include " | ||
| + | #include < | ||
| + | |||
| template <> | template <> | ||
| class Box<char *> { | class Box<char *> { | ||
| Line 181: | Line 187: | ||
| <code cpp BoxCharPtrUsage.cpp> | <code cpp BoxCharPtrUsage.cpp> | ||
| #include < | #include < | ||
| - | #include " | + | |
| - | #include "Student.hpp" | + | #include "BoxCharPtr.hpp" |
| using namespace std; | using namespace std; | ||
cpp/class_templates_specialization.1622828656.txt.gz · Last modified: 2021/06/04 16:44 (external edit)
