若定义cin>>str;当输入Hello World!,所得的结果是str= ______。A.Hello World!B.HelloC.WorldD.Hello World
若定义cin>>str;当输入Hello World!,所得的结果是str= ______。
A.Hello World!
B.Hello
C.World
D.Hello World
相关考题:
下列程序段的输出结果是( )。 String MyStr="Hello,"; MyStr=MyStr+ "World!"; System.out.println(MyStr);A.Hello, World!B.Hello,C.World!D.该程序段有语法错误
若已知char str[20];,有语句cin>>str; 当输入为; This is a program 所得的结果是str=( )。A.This is a programB.ThisC.This isD.This is a
下列程序段的输出结果是 String MyStr = "Hello,"; MyStr = MyStr + "World!"; System.out.println(MyStr);A.Hello,World!B.Hello,C.World!D.该程序段有语法错误
若定义cin>str; 当输入 Object Windows Programming ! 所得的结果是str()A.Object Windows Programming!B.ObjectC.Object WindowsD.Object Windows Programming
若已知char str[20];,有语句cin>>str; 当输入为: This is a program 所得的结果是str=( )。A.This is a programB.ThisC.This isD.This is a
下列程序段的输出结果是 ( ) String MyStr="Hello,"; MyStr=MyStr+"World!"; System.out.println(MyStr);A.Hello,World!B.Hello.C.World!D.该程序段有语法错误
下列程序段的输出结果是( )。 String MyStr="Hello,"; Mystr=MyStr + "World!"; System.out.println(Mystr);A.Hello,World!B.Hello,C.World!D.该程序段有语法错误
若定义cin>str;当输入Object Windows Programming!所得的结果是str()A.Object Windows Programming!B.ObjectC.Object WindowsD.Object Windows Programming
设char str1[11]="HELLO,",str2[10]=“world”;则执行语句cout 设char str1[11]="HELLO,",str2[10]=“world”;则执行语句 cout<<strlen(strcpy(str1,str2)));后的输出结果是 ______。A.12B.11C.7D.5