摘要:
#includeint main(){int i, j;while(scanf("%d%d", &i, &j) == 2)printf("%d\n", i + j);return 0;}关键循环读取 阅读全文
摘要:
LanguageCC++PascalTo read numbersint n;while(scanf("%d", &n) != EOF){ ...}int n;while (cin >> n){ ...}var n: integer;...while not seekeof dobegin read(n); ...end;To read charactersint c;while ((c = getchar()) != EOF){ ...}char c;while (cin.get(c)){ ...}var c: char;...while not eo 阅读全文