#3308. [GESP202606 四级 C++] 第 15 题

[GESP202606 四级 C++] 第 15 题

小杨正在读取“冒险日志”文件 quest.txt 。若文件内容为 Level 10 ,执行以下程序后输出为( )。

ifstream fin("quest.txt");
string s;
int v;
fin >> s >> v;
cout << s.length() * v;

{{ select(1) }}

  • 50
  • 15
  • 70
  • 5