Advertisement
Amr1998

Untitled

Apr 18th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. if(tmp->info==current->info)
  2. {
  3. bool flag = false;
  4. for(int i : c)
  5. {
  6. if(i==tmp->info)
  7. flag =true;
  8. }
  9. if (flag==false)
  10. // c.push_back(tmp->info);
  11. c->addtohead(tmp->info);
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement