C++string字符串的连接、遍历、初始化
#include <iostream> #include "string" using namespace std; //字符串初始化 void strInit() { cout << "字符串初始化:" <<endl; string s1 = &am