C程序设计语言,练习4-7 测试结果与代码如下,有bug欢迎指正! 代码: #include <stdio.h> #include <stdlib.h> #define BUFSIZE 100 char buf[BUFSIZE]; int bufp = 0;