摘要: 打印长度大于80的输出行,设想是读入前80个字符,存在一个长度为80数组里,如果碰到换行符,则舍弃,否则则打印出来,并打印后续字符。代码如下: #include<stdio.h> int getline(char []); int main(){ int l , c , i; char line[8 阅读全文
posted @ 2021-12-20 09:41 想去远方 阅读(741) 评论(0) 推荐(0)