33,318
社区成员
发帖
与我相关
我的任务
分享char temp_char;
fstream temp_file("Sample.txt");
while(temp_file.good())
{
temp_file.get(temp_char);
if(65<=temp_char && temp_char<=90)
{
temp_file.putback(temp_char);
temp_file<<(temp_char+=32);
}
}temp_file.seekp(-1,ios_base::cur);temp_file.putback(temp_char);