您的位置:首页 > 移动开发

Happy New Year

2010-01-01 00:46 387 查看
#include <iostream>
#include <string>
#include <algorithm>

int main()
{

std::string str =
"6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666 66666/n/
6699666669966666666696666666669999999966999999996699666666996666666699666669966999999996699666669966666666 66666/n/
6699666669966666666999666666669999999966999999996669966669966666666699966669966999999996699666669966666666 66666/n/
6699666669966666669969966666669966669966996666996666996699666666666699996669966996666666699666669966666666 66666/n/
6699999999966666699666996666669999999966999999996666699996666666666699699669966999999996699669669966666666 66666/n/
6699999999966666999999999666669999999966999999996666669966666666666699669969966999999996699699969966666666 66666/n/
6699666669966669999999999966669996666666996666666666669966666666666699666999966996666666699996999966666666 66666/n/
6699666669966699666666666996669966666666996666666666669966666666666699666699966999999996699966699966666666 66666/n/
6699666669966996666666666699669966666666996666666666669966666666666699666669966999999996699666669966666666 66666/n/
6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666 66666/n/
6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666 66666/n/
6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666 66666/n/
6669966666699669999999966666666696666666669999999966666666999999966999999996669996666999999996666666666666 66666/n/
6666996666996669999999966666666999666666669999999966666666999999996996666996666996666996666996666666666666 66666/n/
6666699669966669966666666666669969966666669966669966666666666666996999666996666996666999666996666666666666 66666/n/
6666669999666669999999966666699666996666669999999966666666666669966996966996666996666996966996666666666666 66666/n/
6666666996666669999999966666999999999666669999999966666666666699666996696996666996666996696996666666666666 66666/n/
6666666996666669966666666669999999999966669969966666666666669966666996669996666996666996669996666666666666 66666/n/
6666666996666669999999966699666666666996669966996666666666999999996996666996666996666996666996666666666666 66666/n/
6666666996666669999999966996666666666699669966669966666666999999996999999996669999666999999996666666666666 66666/n/
6666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666666 66666/n";
std::replace(str.begin(),str.end(),'6','_');
std::cout<<str<<std::endl;
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: