#GESP1979. [GESP]L3-202312-Q1979-S

[GESP]L3-202312-Q1979-S

下面 C++ 代码执行后不能输出"GESP"的是()。

{{ select(1) }}

  • string str("GESP"); cout<<str<<endl;
  • string str="GESP"; cout<<str<<endl;
  • string str("GESP"); cout<<str[1]<<str[2]<<str[3]<<str[4]<<endl;
  • string str{"GESP"}; cout<<str<<endl;