请高手帮个忙,小写改为大写,怎么改不了
#include<iostream>#include<string>
#include<cctype>
using namespace std;
string &fun(string &);
int main(void)
{
string str("xiaoyaoke");
cout << fun(str) << endl;
return 0;
}
string &fun(string &s)
{
string::iterator ite = s.begin();
while(ite != s.end())
{
toupper(*ite++);
}
return s;
}