Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- void limpiar_frase(string &texto){
- int contador;
- contador = texto.size();
- for(int i=0;i<contador-1;i++){
- if(texto[ i ] == ' ' && texto[ i ] == ' '){
- texto = texto.erase(i+1,1);
- contador = contador - 1;
- }
- }
- cout << texto;
- }
- int main(){
- }
Advertisement
Add Comment
Please, Sign In to add comment