不用c1=
#include<stdio.h> int main() { char c1,c2; printf("请输入一个小写字母"); scanf("%c",&c1); c2=c1-32; printf("%c",c2); return 0; }
把第六行scanf左边的"c1="删了