一个很无语的问题????
#include"iostream"#include"iomanip"
using namespace std;
void sort(char *point);
int main()
{
char *str[7]={"There","are","100","student","in","the","room"}; //定义一个指针数组
//程序结果要输出 There Are 100 Students In The Room.
for(int i=0;i<7;i++)
{
sort(str[i]);
cout << setw(5) << str[i];
}
cout << endl;
return 0;
}
void sort(char *point)
{
if((*point>='a')&&(*point<='z'))
*point=*point-32;
}