比如说键盘输入xyz要分别输出x,y,z谢谢了
for循环,逐个输出字符就可以了
char s[10]; scanf("%s",s); int i=0; while(s[i] != 0) { printf("%c ",s[i]); i++; }
将字符窜存到字符数组中,再用for语句输出