摘要:
while()后面两个if一直没法平行,找了半天原因结果是没用大括号 花括号中多条语句,逻辑上是一个整体,用来组织层次结构! ##tcpl 1-14(半成品) #include <stdio.h> main() { int cts[26], c, max, i; for (i = 0; i < 26 阅读全文
摘要:
[Error] invalid conversion from 'char' to 'const char*' [-fpermissive] #include <stdio.h> main() { int c, lg[12], i, l; for (c = 0; c < 12; ++c) lg[c] 阅读全文
摘要:
#打印输入单词长度的直方图 #include <stdio.h> main() { int c, lg[12], i; for (c = 0; c < 12; ++c) lg[c] = 0; while ((i = getchar()) != EOF) if (i >= 'a' && i <= 'z 阅读全文