Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void test
- {
- vector<int>::iterator p1;
- vector<int> vec;
- vec.push_back(1);
- vec.push_back(2);
- p1 = vec.begin();
- while ( p1!= vec.end())
- {
- xyz(p1);
- p1++;
- }
- }
- void xyz(int* i)
- {
- //do something here
- }
Add Comment
Please, Sign In to add comment