User Tools

Site Tools


cpp:stl:vector

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
cpp:stl:vector [2020/05/27 16:54] – [Ένθεση στον πίνακα] gthanoscpp:stl:vector [2020/05/27 16:54] – [Διαγραφή των περιεχομένων του πίνακα] gthanos
Line 118: Line 118:
 void print(vector<T> v) { void print(vector<T> v) {
   for(auto it = v.cbegin(); it!=v.cend(); it++)    for(auto it = v.cbegin(); it!=v.cend(); it++) 
-    cout << setw(3) << *it; 
-  cout << endl; 
-} 
- 
-template<typename T> 
-void print_r(vector<T> v) { 
-  for(auto it = v.crbegin(); it!=v.crend(); it++)  
     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