Guest User

Untitled

a guest
Feb 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. void test
  2. {
  3. vector<int>::iterator p1;
  4. vector<int> vec;
  5.  
  6. vec.push_back(1);
  7. vec.push_back(2);
  8.  
  9. p1 = vec.begin();
  10.  
  11. while ( p1!= vec.end())
  12. {
  13. xyz(p1);
  14.  
  15. p1++;
  16. }
  17. }
  18.  
  19.  
  20. void xyz(int* i)
  21. {
  22. //do something here
  23. }
Add Comment
Please, Sign In to add comment