摘要: string substr (size_t pos = 0, size_t len = npos) const;// string::substr#include #include int main (){ std::string str="We think in generalities, bu... 阅读全文
posted @ 2015-12-31 12:00 飞飞喵 阅读(452) 评论(0) 推荐(0)
摘要: int main(int argc, const char * argv[]) { // insert code here... string a = ""; cout<<a.size()<<endl; cout<<a.size()-1<<endl; cout<<a.... 阅读全文
posted @ 2015-12-31 11:56 飞飞喵 阅读(626) 评论(3) 推荐(0)