![]() |
#2
ma35872008-09-20 11:35
|
#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;
}