Write a C++ program to insert a given string into middle of the another given string of length 4
- برمجة سي بلس بلس
- برمجة
- 2021-05-11
- MarwaMohammed
الأجوبة
#include <iostream>
using namespace std;
string test(string s1, string word)
{
return s1.substr(0, 2) + word + s1.substr(2);
}
int main()
{
cout << test("[[]]","Hello") << endl;
cout << test("(())", "Hi") << endl;
return 0;
}أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال
