Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <cmath>
- using namespace std;
- string swap_substr(string a, string sub_1, string sub_2)
- {
- string result;
- return result;
- }
- int main()
- {
- string s, substr_first, substr_second;
- cin >> s >> substr_first >> substr_second;
- string result = swap_substr(s, substr_first, substr_second);
- cout << result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement