Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vector<int> vec{1,2,3,4,5};
- for(auto i=0;i<vec.size();i++)
- {
- if(vec[i] == 1)
- //do smth...
- if(vec[i] == 2)
- //do smth...
- if(vec[i] == 3)
- //do smth...
- if(vec[i] == 4)
- //do smth...
- if(vec[i] == 5)
- //do smth...
- }
Add Comment
Please, Sign In to add comment