#include <stdio.h> #include <stdlib.h> int main(void) { char a[100]; char *p = a; scanf("%s",a); while(*p) { printf("%c ",*p++); } system("pause"); return 0; }
[此贴子已经被作者于2019-6-12 19:31编辑过]
void foo( unsigned n ) { if( n == 0 ) return; foo( n/10 ); printf( "%u ", n%10 ); }