首先判断第一个字母,之后给第一个字母的asc减去32。然后通过printf输出。就可以了
调用一个字符串函数strupr()就行,例如: #include "stdio.h" #include "string.h" main() { char a[20]="thank you !"; strupr(a); printf("%s",a); }你运行一下吧,我这没TC