2019年5月20日
摘要: 如果有超过2个连续的非字母出现则单词计数不准确。 8.11.4.c include include int main(void) { int word = 0, ch_total = 0, nocharflag = 0; char ch; while ((ch = getchar()) != EOF 阅读全文
posted @ 2019-05-20 23:47 viviLy 阅读(177) 评论(0) 推荐(0)
摘要: 8.11.3.c include include int main(void) { char ch; int upper = 0, lower = 0, total = 0; while ((ch = getchar()) != EOF) { ++total; if (islower(ch) 0) 阅读全文
posted @ 2019-05-20 20:35 viviLy 阅读(176) 评论(0) 推荐(0)