allia

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

Jan 15th, 2021
965
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data