#include<iostream>
#include<string>
string version1(const string& s1, const string& s2);
const string& version2(string& s1, const string& s2);
const string& version3(string& s1, const string& s2);
using namespace std;
int main()
{
string input;
string copy;
string result;
cout << "Enter a string: ";
getline(cin,input);
copy = input;
cout << "Your string as entered: " << input << endl;
result = version1(input,"***");
cout << "Your string enhanced: " << result << endl;
cout << "Your origonal sting: " << input << endl;
result = version2(input, "###");
cout << "Your string enhanced: " << r
C++将引用类对象
最新推荐文章于 2024-07-12 16:06:02 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)