qfedu-cpp-level/day9/homework/h1.cpp

16 lines
347 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

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;
}