scanf("%c,%c",&c1,&c2);改成:scanf("%c",&c1);scanf("%c",&c2);这个语句分开获取就可以获取字符的值了,printf("c1=%c,c2=%c\n",c1,c2);
那你改为在上一行的末。scanf("%u,%u\n",&u,&v);