Guest User

Untitled

a guest
Jan 16th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. vector<int> vec{1,2,3,4,5};
  2.  
  3. for(auto i=0;i<vec.size();i++)
  4. {
  5. if(vec[i] == 1)
  6. //do smth...
  7. if(vec[i] == 2)
  8. //do smth...
  9. if(vec[i] == 3)
  10. //do smth...
  11. if(vec[i] == 4)
  12. //do smth...
  13. if(vec[i] == 5)
  14. //do smth...
  15. }
Add Comment
Please, Sign In to add comment