# include<iostream>
# include <string>
using namespace std;
//string的构造函数
void test01()
{

}
int main()
{
	string s1 = "abc";//默认构造
	const char* str = "hello world";


	
	string s2(str);

	cout << "s2:"<<s2 << endl;
	string s3(s2);
	cout << "s3:" << s3 << endl;
	string s4(10, 'a');
	cout << "s4:" << s4 << endl;
	system("pause");
	return 0;
}