cpp:stl:vector
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
cpp:stl:vector [2020/05/27 17:27] – [Διαγραφή των περιεχομένων του πίνακα] gthanos | cpp:stl:vector [2020/05/27 17:29] – gthanos | ||
---|---|---|---|
Line 81: | Line 81: | ||
<WRAP important 80% center round> | <WRAP important 80% center round> | ||
- | Όταν μία συνάρτηση της STL λαμβάνει ως παραμέτρους δύο // | + | Όταν μία συνάρτηση της STL λαμβάνει ως παραμέτρους δύο // |
</ | </ | ||
Line 158: | Line 158: | ||
void print(vector< | void print(vector< | ||
for(auto it = v.cbegin(); it!=v.cend(); | for(auto it = v.cbegin(); it!=v.cend(); | ||
- | cout << setw(3) << *it; | ||
- | cout << endl; | ||
- | } | ||
- | |||
- | template< | ||
- | void print_r(vector< | ||
- | for(auto it = v.crbegin(); | ||
cout << setw(3) << *it; | cout << setw(3) << *it; | ||
cout << endl; | cout << endl; |
cpp/stl/vector.txt · Last modified: 2023/05/29 19:12 by gthanos