从键盘上输入若干字符,直到输入字符“*为止”将其中的小写字母转化为大写字母输出,其他字符原样输出 后面该怎么写,求大神指教
#include "stdio.h"void main() {
char c;
printf("\nPlease input some characters:(end of '*')\n");
while((c=getchar())!='*')
2016-05-08 00:23



2016-05-08 00:47
程序代码:#include "stdio.h"
#include "ctype.h"
main()
{
char c;
printf("\nPlease input some characters:(end of '*')\n");
while((c=getchar())!='*')
{
if (islower(c))
c = toupper(c);
printf("%c", c);
}
}
2016-05-08 07:20
2016-05-09 08:41