Maruf_Hasan

Remove all same elements from vector

Oct 12th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. void DeleteArray()
  2. {
  3. int x;
  4. cin>>x;
  5. v.erase(remove(v.begin(),v.end(),x),v.end());
  6. }
Advertisement
Add Comment
Please, Sign In to add comment