STRING

#include <string>

#include <algorithm>

 

std::string str = "afafas";

std::replace(str.begin(), str.end(), 'a', '1');

posted @ 2016-08-27 22:46  山涧的水  阅读(98)  评论(0)    收藏  举报