时间:2021-06-13 08:45:45 | 栏目:C代码 | 点击:次
int main(void)
{
int length, i;
char string[20]= "this is a string";
length = strlen(string);
for (i=0; i<length; i++)
{
string[i] = toupper(string[i]);
}
printf("%s\n",string);
system("pause");
return 0;
}