cpp:class_templates
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
cpp:class_templates [2020/05/25 07:50] – [Ένα πιο σύνθετο παράδειγμα] gthanos | cpp:class_templates [2020/05/25 07:52] – [Ένα πιο σύνθετο παράδειγμα] gthanos | ||
---|---|---|---|
Line 155: | Line 155: | ||
int main() { | int main() { | ||
Array< | Array< | ||
+ | | ||
for(int i=0; i< | for(int i=0; i< | ||
a[i] = i; | a[i] = i; | ||
| | ||
+ | cout << "--- Printing a ---\n"; | ||
cout << a << endl; | cout << a << endl; | ||
- | Array< | + | |
+ | | ||
+ | |||
+ | cout << "--- Printing b ---\n"; | ||
cout << b << endl; | cout << b << endl; | ||
| | ||
- | Array< | + | Array< |
sts[0] = Student(" | sts[0] = Student(" | ||
sts[1] = Student(" | sts[1] = Student(" | ||
sts[2] = Student(" | sts[2] = Student(" | ||
+ | sts[3] = Student(" | ||
| | ||
+ | cout << "--- Printing sts ---\n"; | ||
cout << sts << endl; | cout << sts << endl; | ||
| | ||
} | } | ||
</ | </ |
cpp/class_templates.txt · Last modified: 2020/05/25 06:52 (external edit)