摘要: #include <iostream>#include <string.h>using namespace std;int main(){string result;string s ( "AAAAAAAA" );char ch = 'C';result = s.replace ( 1 , 3 , 4 , ch ); // s= "ACCCCAAAAcout<<s<<endl;return 0;} 阅读全文
posted @ 2012-05-11 19:17 byfei 阅读(165) 评论(0) 推荐(0)