string字符串对象特征

int capacity()const;??? //返回当前容量(即string中不必增加内存即可存放的元素个数)
int max_size()const;??? //返回string对象中可存放的最大字符串的长度
int size()const;??????? //返回当前字符串的大小int length()const;?????? //返回当前字符串的长度
bool empty()const;??????? //当前字符串是否为空
void resize(int len,char c);//把字符串当前大小置为len,并用字符c填充不足的部分
string类的输入输出操作:
string类重载运算符operator>>用于输入,同样重载运算符operator<<用于输出操作。
函数getline(istream &in,string &s);用于从输入流in中读取字符串到s中,以换行符’n’分开