这家伙又emo了的博客Our getch and ungetch do not handle a pushed-back EOF correctly. Decide what their properties ought to be if an EOF is pushed back, then implement your design. 思考: int类型-1在内存中的表示(16位的...
这家伙又emo了的博客K&R exercise 4-7、4-8 4-7 Write a routine ungets(s) that will push back an entire string onto the input...将字符串的字符按照其输入顺序压入到缓存区中 void ungets(char s[]) { int i = 0; void ungetch
qq_33685612的博客 ungetch( int ); int getop( char s[]) { int i, c, c2; while ((c = getch()) == ' ' || c == '\n' || c == '\t' ) //去除多余的空白字符 ; if (c == '-' || c == '+' )...