用命令行吧 #include<stdio.h>
int main(int argc,char *argv[]){ int i=0; while(putchar(argv[1][i++])!=EOF); printf("The digit of number is: %d\nAfter reversed :",i); for(--i;i>=0;putchar(argv[1][i--]));
return 0;}