EOF
🏁 Signal indicating no more input data remains
End-of-File indicator in input streams.
中文对照 · Chinese
🏁 读到卷轴最末尾的终点旗帜
在读取未知行数的测试数据时,用 `while (cin >> x)` 自动检测 EOF。
Code example
while (cin >> x) { sum += x; }Explore 100 bilingual word cards →End-of-File indicator in input streams.
🏁 读到卷轴最末尾的终点旗帜
在读取未知行数的测试数据时,用 `while (cin >> x)` 自动检测 EOF。
while (cin >> x) { sum += x; }Explore 100 bilingual word cards →