#include <iostream> #include <ext/rope> #include <time.h>; using namespace __gnu_cxx; using namespace std; int main() { crope str1("Hello world"); crope str2(" Boys!"); int i=4000; while(i) { str1.insert(5,"hahah"); str1.erase(5,7); i--; } // i=50000; //while(i) //str1[i--]; cout<<clock()<<endl; system("pause"); } 一切都在代码中