摘要: / string::assign #include <iostream> #include <string> using namespace std; int main () { string str; string base="The quick brown fox jumps over a lazy dog."; // used in the same order as described above: str.assign(base); cout << str << endl; str.assign(base,10,9) 阅读全文
posted @ 2012-11-06 20:00 MFT 阅读(230) 评论(0) 推荐(0) 编辑