摘要:
#includeint main(){int i, j;while(scanf("%d%d", &i, &j) == 2)printf("%d\n", i + j);return 0;}关键循环读取 阅读全文
posted @ 2014-03-16 20:05
FREE小宝
阅读(122)
评论(0)
推荐(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 阅读全文
posted @ 2014-03-16 20:04
FREE小宝
阅读(163)
评论(0)
推荐(0)

浙公网安备 33010602011771号