摘要: 1、 #include <stdio.h> #include <ctype.h> #include <stdbool.h> #define STOP '|' int main(void) { char ch; char prep; long n_ch = 0L; int n_lines = 0; i 阅读全文
posted @ 2021-08-22 15:26 小鲨鱼2018 阅读(364) 评论(0) 推荐(0) 编辑
摘要: 1、 #include <stdio.h> #define STOP '|' int main(void) { char ch; int chnum = 0; int lines = 0; while((ch = getchar()) != STOP) { if(ch != '\n') chnum+ 阅读全文
posted @ 2021-08-22 12:41 小鲨鱼2018 阅读(785) 评论(0) 推荐(0) 编辑