#inClude
using NAMEspace std;
#include
//string的构造函数
/*
-string(); //创建一个空的字符串 例如: string str;
-string(const char* s); //使用字符串s初始化
-string(const string& str); //使用一个string对象初始化另一个string对象
-string(int n, char c); //使用n个字符c初始化
*/
void test01()
{
string s1; //默认构造,创建空字符串,调用无参构造函数
cout