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 16:54] – [Ένθεση στον πίνακα] gthanos | cpp:stl:vector [2020/05/27 16:54] – [Διαγραφή των περιεχομένων του πίνακα] gthanos | ||
---|---|---|---|
Line 118: | Line 118: | ||
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