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