#GESP2011. [GESP]L4-202312-Q2011-S

[GESP]L4-202312-Q2011-S

下面 C++ 代码执行后生成的文件其字节数为( )。

ofstream fout;
fout.open("1.txt");
for(int i=1;i<=10;i++)
{
    if(i%5==0)
    {
        int x=6;
        fout<<x;
    }
    else
    {
        char ch='A';
        fout<<ch;
    }
}

{{ select(1) }}

  • 10
  • 16
  • 40
  • 24