• 2022-05-30 问题

    下列语句中,正确的是( ). A: char myString[ ]="Hello-World!"; B: char myString="Hello-World!"; C: char myString[11]="Hello-World!"; D: char myString[12]="Hello-World!";

    下列语句中,正确的是( ). A: char myString[ ]="Hello-World!"; B: char myString="Hello-World!"; C: char myString[11]="Hello-World!"; D: char myString[12]="Hello-World!";

  • 2021-04-14 问题

    有如下的程序: #include <cstring> #include<iostream> using namespace std; class MyString { public: MyString(const char *s); ~MyString() {delete []data;} protected: unsigned len; char * data; }; MyString::MyString(const char *s) { len = strlen(s); data = new char[len+1]; strcpy(data,s); } int main() { MyString a("C++ Programming"); MyString b(a); return 0; } 在运行上面的程序时出错,出错的原因是( )。

    有如下的程序: #include <cstring> #include<iostream> using namespace std; class MyString { public: MyString(const char *s); ~MyString() {delete []data;} protected: unsigned len; char * data; }; MyString::MyString(const char *s) { len = strlen(s); data = new char[len+1]; strcpy(data,s); } int main() { MyString a("C++ Programming"); MyString b(a); return 0; } 在运行上面的程序时出错,出错的原因是( )。

  • 2022-06-06 问题

    下列语句中,正确的是( )。 A: char*myString=&quot;Hello-World!&quot;; B: char myString=&quot;Hello-World!&quot;; C: char myString[11]=&quot;Hello-World!&quot;; D: char myString[12]=&quot;Hello-World!&quot;;

    下列语句中,正确的是( )。 A: char*myString=&quot;Hello-World!&quot;; B: char myString=&quot;Hello-World!&quot;; C: char myString[11]=&quot;Hello-World!&quot;; D: char myString[12]=&quot;Hello-World!&quot;;

  • 2021-04-14 问题

    (7-3)编译如下定义的MyString类,将出现()。class MyString extends java.lang.String{ }

    (7-3)编译如下定义的MyString类,将出现()。class MyString extends java.lang.String{ }

  • 2022-06-26 问题

    DateTime.Parse(myString);这行代码有什么问题?

    DateTime.Parse(myString);这行代码有什么问题?

  • 2022-06-19 问题

    分析下面的JavaScript代码段: varmystring="Iamastudent"; a=mystring.indexOf("am"); document.write(a); 输出结果是()。 A: 3 B: 4 C: 2 D: 1

    分析下面的JavaScript代码段: varmystring="Iamastudent"; a=mystring.indexOf("am"); document.write(a); 输出结果是()。 A: 3 B: 4 C: 2 D: 1

  • 2022-07-29 问题

    使用String对象的indexOf()方法查找字符串”helloworld”中是否包含G,下列语句描述正确的是()。 A: 字符串"helloworld"中不包含G字符,indexOf返回0 B: 字符串"helloworld"中不包含G字符,indexOf返回null C: 字符串"helloworld"中不包含G字符,indexOf返回-1 D: 字符串"helloworld"中不包含G字符,indexOf返回1

    使用String对象的indexOf()方法查找字符串”helloworld”中是否包含G,下列语句描述正确的是()。 A: 字符串"helloworld"中不包含G字符,indexOf返回0 B: 字符串"helloworld"中不包含G字符,indexOf返回null C: 字符串"helloworld"中不包含G字符,indexOf返回-1 D: 字符串"helloworld"中不包含G字符,indexOf返回1

  • 2022-07-29 问题

    使用String对象的indexOf()方法查找字符串”helloworld”中是否包含G,下列语句描述正确的是()。 A: A字符串"helloworld"中不包含G字符,indexOf返回0 B: B字符串"helloworld"中不包含G字符,indexOf返回null C: C字符串"helloworld"中不包含G字符,indexOf返回-1 D: D字符串"helloworld"中不包含G字符,indexOf返回1

    使用String对象的indexOf()方法查找字符串”helloworld”中是否包含G,下列语句描述正确的是()。 A: A字符串"helloworld"中不包含G字符,indexOf返回0 B: B字符串"helloworld"中不包含G字符,indexOf返回null C: C字符串"helloworld"中不包含G字符,indexOf返回-1 D: D字符串"helloworld"中不包含G字符,indexOf返回1

  • 2021-04-14 问题

    智慧职教: indexOf() 方法对大小写敏感

    智慧职教: indexOf() 方法对大小写敏感

  • 2022-07-25 问题

    C#变量合法命名的是( )。 A: $abcc B: 12_223 C: myString D: .123aab

    C#变量合法命名的是( )。 A: $abcc B: 12_223 C: myString D: .123aab

  • 1 2 3 4 5 6 7 8 9 10