#GESP3635. [GESP]L4-202512-Q3635-J

[GESP]L4-202512-Q3635-J

执行下面代码会输出 100。

int main() {
    ofstream fout("data.txt");
    fout << 10 << " " << 20 << endl;
    fout << 30 << " " << 40;
    fout.close();

    ifstream fin("data.txt");
    int a, b, c, d;
    fin >> a >> b >> c >> d;
    fin.close();

    cout << a + b + c + d;
    return 0;
}

{{ select(1) }}

  • 正确
  • 错误