This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 【场景】字符串反转
// 编写一个函数 reverseString,接受一个字符串作为参数,并返回该字符串的反转版本。
#include <bits/stdc++.h>
using namespace std;
string reverseString(string &other)
{
}
int main()
cout << "反转后的字符串 hello 为: " << reverseString("hello") << endl;
return 0;