摘要:
/ 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) 阅读全文