#include
#include
using namespace std;
int main() {
string s1;
getline(cin, s1);//相当于cin>>s1;
cout << s1 << endl;
string s("hello");
cout << s << endl;
cout << s.size() << endl;//返回有效个数 不包含/0
cout << s.length() << endl;//获取有效个数 不包含/0
cout << s.capacity() << endl;
s.clear();
if (s.empty()) {
cout << "empty string" << endl;
}
else {
cout << "not empty string" << endl;
}
return 0;
}