练习9.46
#include
#include
using namespace std;
std::string oops_func(const string & s1, const string & before_s1, const string & after_s1);
int main(void)
{
string s1 = "Rachel ";
cout << "s1" << endl;
string before_s1 = "Ms.";
string after_s1 = "Jrs.";
cout << oops_func(s1, before_s1, after_s1)<
本文展示了一个使用C++进行字符串操作的简单示例,包括基本的字符串定义及可能的操作函数介绍。
33万+

被折叠的 条评论
为什么被折叠?



