- 博客(2)
- 收藏
- 关注
转载 size_type 和 size_t 的区别
标准库string里面有个函数size,用来返回字符串中的字符个数,具体用法如下:string st(“The expense of spirit\n”);cout << "The size of "<<st<<“is”<<st.size()<< “characters, including the newline”<<...
2019-04-02 21:52:51 114
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人