GastonFontenla

Untitled

May 8th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. for(int cont=0; cont<tamanio; cont++){
  2.         if(cont >= palabra.size())
  3.             cout << "SEGMENTATION FAULT" << endl;
  4.         if(palabra[cont]=='(') palabra.erase(palabra.begin()+cont);
  5.         if(palabra[cont]==')') palabra.erase(palabra.begin()+cont);
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment