Guest User

Untitled

a guest
Jul 15th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. template<class T>
  2. void reversePrintVector(vector<T> v) {
  3.   for(typename vector<T>::reverse_iterator it = v.rbegin(); it < v.rend(); ++it) {
  4.     cout << *it << " ";
  5.   }
  6.   cout << endl;
  7. }
Add Comment
Please, Sign In to add comment