Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string str_replace(string fin, string rep, string str)
- {
- if(str.find(fin) == string::npos) return str;
- while(str.find(fin) != string::npos) str.replace(str.find(fin), fin.length(), rep);
- return str;
- }
Add Comment
Please, Sign In to add comment