如下程序:Dima()AsStringPrivateSubCommand1_Click()DimtempAsStringDimiAsIntegertemp=Replace(Text1,,,,,)a=Split(temp,,)Fori=0ToUBound( )Printa(i);NextiEndSub程序运行后,在text1中输入字符串23,,45,6,则单击command1按钮后,显示的结果为( )A.23,,45,6B.23456C.23,45,6D.23,,45,6

如下程序:

Dima()AsString

PrivateSubCommand1_Click()

DimtempAsString

DimiAsInteger

temp=Replace(Text1,",,",",")

a=Split(temp,",")

Fori=0ToUBound( )

Printa(i);

Nexti

EndSub程序运行后,在text1中输入字符串"23,,45,6",则单击command1按钮后,显示的结果

为( )

A.23,,45,6

B.23456

C.23,45,6

D.23,,45,6


相关考题:

如下数组声明语句,正确的是( )。A. Dim a[3, 4] As IntegerB. Dim a(34) As IntegerC. Dim a(n,n) As IntegerD. Dim a(3,4) As Integer

有如下程序: include using namespace std; class Complex { double re, im, public 有如下程序: #include <iostream> using namespace std; class Complex { double re, im, public: Complex(double r, double i): re(r), im(i) {} double real() const {return re;} double image() const {return im,} Complex operator +=(Complex a) { re +=a.re; im +=a.im; return *this; } }; ostream operator << (ostream s, const Complex z) { return s<<'('<<z.real()<<','<<z.image()<<')'; } int main() { Complex x(1,-2), y(2,3); cout << (x+=y) << endl; return 0; } 执行这个程序的输出结果是( )。A.(1,-2)B.(2,3)C.(3,5)D.(3,1)

有如下程序: include using namespace std; class Complex { double 有如下程序: #include<iostream> using namespace std; class Complex { double re,im; public: Complex(double r,double i):re(r),im(i){} double real()const{return re;} double image()const{return im;} Complex operator+=(Complex a) { re+=a.re; im+=a.im; return *this; } }; ostream operator<<(ostream s,const Complex z) { return s<<'('<<z.real()<<','<<z.image()<<')'; } int main() { Complex x(1,2),y(2,3); tout<<(x+=y)<<endl; return 0; } 执行这个程序的输出结果是( )。A.(1,-2)B.(2,3)C.(3,5)D.(3,1)

设有如下程序段: Dim a(10) … For Each X In a Print X; Next x 在上面的程序段中,变量X必须是( )。A.整型变量B.变体型变量C.动态数组D.静态数组

设程序中有如下数组定义和过程调用语句:Dim a(10) as integer……Call p(a)如下过程定义中,正确的是A)Private Sub p(a as integer)B)Private Sub p(a() as integer)C)Private Sub p(a(10) as integer)D)Private Sub p(a(n) as integer)

有如下程序: include using namespace std; class Complex { dou 有如下程序: #include<iostream> using namespace std; class Complex { double re, im; public: Complex(double r, double i): re(r), im(i) {} double real() const { return re; } double image() const { return im; } Complex operator+= (Complex a) { re += a.re; im += a.im; return *this; } }; ostream operator<<(ostream s, const Complex z) { remm s<<'('<<z.real()<<','<<z.image()<<')'; } int main() { Complex x(1,-2), y(2,3); cout<<(x+=y)<<endl; return 0; } 执行这个程序的输出结果是A.(1,-2)B.(2,3)C.(3,5)D.(3,1)

(22)设有如下程序段:Dim a(10)...For Each x In aPrint x;Next x在上面的程序段中,变量x必须是A)整型变量B)变体型变量C)动态数组D)静态数组

有如下程序代码,输出结果是( )。Dima(-3to6,5)n=Ubound(a,1)printn A.-3B.0C.6D.5

如需要使用数组来存储如下的方阵数据,则最合适的数组声明语句为______。 1.1 2.2 3.3 4.4 5.5 6.6 7.7 8.8 9.9A.Dim a(9) As SingleB.Dim a(3, 3) As SingleC.Dim a(-1) As SingleD.Dim a(2, 2) As Single