Advertisement
Guest User

Untitled

a guest
May 28th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. void soul::removefromlist(int action){
  2.     for(int A = 0; A<actionlist.size(); A++){
  3.         if(actionlist[A]==action){
  4.             actionlist.erase(actionlist.begin()+A);
  5.             cout << "Action " << action << " has been removed." << endl;
  6.         }
  7.     }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement