执行下面 C++ 代码后,输出是( )。
string str=("chen");
int x=str.length();
int temp=0;
for(int i=0;i<=x;i++)
{
temp++;
}
cout<<temp<<endl;
- A.
- B.
- C.
- D.
g3-03503.in输出g3-03503.out执行下面 C++ 代码后,输出是( )。
string str=("chen");
int x=str.length();
int temp=0;
for(int i=0;i<=x;i++)
{
temp++;
}
cout<<temp<<endl;