Advertisement
allia

подстроки доделать

Jan 15th, 2021
1,038
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. string swap_substr(string a, string sub_1, string sub_2)
  8. {
  9.   string result;
  10.  
  11.   return result;
  12. }
  13.  
  14. int main()
  15. {
  16.   string s, substr_first, substr_second;
  17.   cin >> s >> substr_first >> substr_second;
  18.   string result = swap_substr(s, substr_first, substr_second);
  19.   cout << result;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement