Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- string s,
- s2 ,
- s3 ,
- _s = "WUB";
- int pos;
- int f();
- ////////////////////////////////////////////////////
- int main() //
- {
- cin >> s;
- while(f() != -1)
- {
- s[pos ] = ' ';
- s[pos+1] = ' ';
- s[pos+2] = ' ';
- }
- cout << s << endl;
- }
- ////////////////////////////////////////////////////
- int f() //
- {
- pos = s.find("WUB");
- return pos;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement