#include <iostream>
#include <string>
using namespace std;
void fun_934()
{
string a("student");
// cout<<a<<endl;
string::iterator iter = a.begin();
while(iter != a.end())
{
*iter = toupper(*iter);
iter++;
}
cout<<a<<endl;
}
《c++ Primer(第四版)》习题 9.34
最新推荐文章于 2024-06-04 00:29:08 发布