• 2022-06-19 问题

    下列#include命令中,正确的是() A: #inclue[string.h] B: #include{string.h} C: #include(string.h) D: #include

    下列#include命令中,正确的是() A: #inclue[string.h] B: #include{string.h} C: #include(string.h) D: #include

  • 2022-06-08 问题

    String s=new String(“hello”); String t =new String(“hello”); char c [ ] ={‘h’,’e’,’l’,’l’,’o’}; 下列哪些表达式返回true ?

    String s=new String(“hello”); String t =new String(“hello”); char c [ ] ={‘h’,’e’,’l’,’l’,’o’}; 下列哪些表达式返回true ?

  • 2022-05-29 问题

    下面这些代码的功能是创建一个string对象 s,并将其内容设置为字符串 alohaworld ,正确的有: A: string s{'alohaworld'}; B: string s = string{"alohaworld"}; C: char* p = "alohaworld";string s(p); D: string s{'a','l','o','h','a','w','o','r','l','d'}; E: string s('a','l','o','h','a','w','o','r','l','d');

    下面这些代码的功能是创建一个string对象 s,并将其内容设置为字符串 alohaworld ,正确的有: A: string s{'alohaworld'}; B: string s = string{"alohaworld"}; C: char* p = "alohaworld";string s(p); D: string s{'a','l','o','h','a','w','o','r','l','d'}; E: string s('a','l','o','h','a','w','o','r','l','d');

  • 2022-06-03 问题

    与char string[]={"He Jing"};等价的语句是: A: char string[7]={'H','e',' ','J','i','n','g'}; B: char string[ ]={'H','e',' ','J','i','n','g'}; C: char string[8]={"He Jing"}; D: char string[7]={"He Jing"}; E: char string[8]="He Jing";

    与char string[]={"He Jing"};等价的语句是: A: char string[7]={'H','e',' ','J','i','n','g'}; B: char string[ ]={'H','e',' ','J','i','n','g'}; C: char string[8]={"He Jing"}; D: char string[7]={"He Jing"}; E: char string[8]="He Jing";

  • 2022-06-08 问题

    String s=new String(“hello”);String t =new String(“hello”);char c [ ] ={‘h’,’e’,’l’,’l’,’o’};下列哪些表达式返回true ? A: s.equals(t); B: t.equals(c); C: s= =t ; D: t.equals (new String(“hello”));

    String s=new String(“hello”);String t =new String(“hello”);char c [ ] ={‘h’,’e’,’l’,’l’,’o’};下列哪些表达式返回true ? A: s.equals(t); B: t.equals(c); C: s= =t ; D: t.equals (new String(“hello”));

  • 2022-05-29 问题

    59 给定以下代码,哪些语句的结果不为 true String s1 = “hello” ; String s2 = “hello” ; String s3 = new String(“hello”) ; char[] c = {‘h’,’e’,’l’,’l’,’o’}; String s4 = new String(c); A: s1.equals(s2) B: s3.equals(s4) C: s1==s2 D: s3==s4

    59 给定以下代码,哪些语句的结果不为 true String s1 = “hello” ; String s2 = “hello” ; String s3 = new String(“hello”) ; char[] c = {‘h’,’e’,’l’,’l’,’o’}; String s4 = new String(c); A: s1.equals(s2) B: s3.equals(s4) C: s1==s2 D: s3==s4

  • 2022-05-27 问题

    使用函数strlen函数时,需要包含哪个头文件 A: string.h B: String.h C: Stdio.h D: Stdlib.h

    使用函数strlen函数时,需要包含哪个头文件 A: string.h B: String.h C: Stdio.h D: Stdlib.h

  • 2022-06-09 问题

    设String对象s="H",运行语句System.out.println(s.concat("ello!"));后String对象s的内容为"Hello!",所以语句输出为"Hello!"。

    设String对象s="H",运行语句System.out.println(s.concat("ello!"));后String对象s的内容为"Hello!",所以语句输出为"Hello!"。

  • 2022-05-29 问题

    如果程序中用到标准库函数sqrt( )和strcmp( ),那么该程序应含下面哪两条语句( ) A: B: include “stdio.h” C: include “math.h” D: E: include “math.h” F: incluede “string.h” G: H: include “string.h” I: include “stdio.h” J: K: include “stdlib.h” L: include ”math.h”

    如果程序中用到标准库函数sqrt( )和strcmp( ),那么该程序应含下面哪两条语句( ) A: B: include “stdio.h” C: include “math.h” D: E: include “math.h” F: incluede “string.h” G: H: include “string.h” I: include “stdio.h” J: K: include “stdlib.h” L: include ”math.h”

  • 2022-10-24 问题

    声明字符串型变量并赋值正确的是( ) A: char L='Hello'; B: Char c1='H'; C: string UserName="John"; D: String UserName='John';

    声明字符串型变量并赋值正确的是( ) A: char L='Hello'; B: Char c1='H'; C: string UserName="John"; D: String UserName='John';

  • 1 2 3 4 5 6 7 8 9 10