Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- cout << "enter your text" << endl;
- string s;
- getline(cin, s);
- int size = s.size();
- for (int i = 0; i < size; i++)
- {
- if (s[i] == 'ce')
- {
- s.replace(s.find("ce"), "se");
- }
- }
- cout << endl << endl;
- cout << "your new text" << endl <<s<< endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement