利用getc 和ungetc的实例
#include #include void main( void ){ int ch; int result = 0; printf( "Enter an integer: " ); /* Read in and convert number: */ while( ((ch = getchar()) != EOF) && isdigit( ch ) )