下列程序的执行结果为______。Private sub Command1_ Click ( ) a = 100 b = 50 if a <> b then a = a + b Else b = b -a Print a, bEnd SubA.50 50B.150 50C.200 200D.10 10
下列程序的执行结果为______。Private sub Command1_ Click ( ) a = 100 b = 50 if a <> b then a = a + b Else b = b -a Print a, bEnd Sub
A.50 50
B.150 50
C.200 200
D.10 10
相关考题:
请在mian函数中填空使下面程序的输出结果为1 1。 include class A { private: 请在mian函数中填空使下面程序的输出结果为1 1。include<iostream.h>class A{ private:int a;int b;public:A( ):a(0) ,b(1) { }void show( ) { cout < < a < < " " < < b;} };class B{ private:int a;int c;public:B( ):a(1),
下列程序的运行结果为【 】。include class myclass{private: int a, b, c; public: v 下列程序的运行结果为【 】。include <iostream. h>class myclass{private:int a, b, c;public:void fun(){int a;a=10;this->,a=5;b=6;this->c=7;cout<<"a="<<a<<",this->a="<<this->a<<endl;}};void main(){myclass obj1;obj1.fun()}
在下面程序的横线处填上适当的语句,使该程序执行结果为10。 include using namespace 在下面程序的横线处填上适当的语句,使该程序执行结果为10。include <iostream>using namespace std;class MyClass{public:MyClasS(int A){X=a;}【 】//取x的值private:int x;};int main(){MyClass my(10);
以下程序的执行结果是 ( )。include using namespace std;class sample{private: int 以下程序的执行结果是 ( )。 #include <iostream> using namespace std; class sample { private: int x; public: sample (int A) { x=a; } friend double square(sample s); }; double square(sample s) {A.20B.30C.900D.400
下列程序的执行结果为【 】。include class Point{public:Point(double i, double j) 下列程序的执行结果为【 】。include <iostream. h>class Point{public:Point(double i, double j) { x=i; y=j;}double Area() const { return 0.0;}private:double x, y;};class Rectangle: public Point{public:Rectangle(double i, double j, double k, double 1)double Area() const {return w * h;}private:double w, h;};Rectangle: :Rectangle(double i, double j, double k. double 1): Point(i,j).{w=k, h=1}void fun(Point s){cout<<s. Area()<<end1;}void main( ){Rectangle rec(3.0, 5.2, 15.0. 25.0);fun(rec)}
执行下列程序后,鼠标单击窗体,输出结果为Private Sub Form_Click()Print "Click";End SubPrivate Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)Print "Donw"End SubPrivate Sub Form_MouseUp(ButtonAs Integer,Shift As Integer,X As Single,Y As Single)Print "Up"End SubA.DownUpClickB.ClickDownUpC.DownClickUpD.UpDownCliek
以下程序的执行结果是______。 include class CSample{ private: int n; static int 以下程序的执行结果是______。include<iostream.h>class CSample{private:int n;static int k:public:CSample (int i) {n=i;k++;};voiddisp();} ;void CSample::disp(){cout <<"n="<<n<<",k="<<k<<endl}int CSample:
下列程序的执行结果为( )。 Ptivate Sub Command_Click() DimFirStr As String FirStr="abcdef" PrintPat(FirSB) End Sub PrivateFunctionPat(xStr As String)As String DimtempStr As String,strLen As Integer tempStr="" strLen=Len(xStr) i=1 DoWA.abcdefB.afbecdC.fedcbaD.defabc
执行下列程序后,鼠标单击窗体,输出结果为Private Sub Form_Click()Print "Click";End SubPrivate Sub Form_mouseDown(Button As Integer,ShiftAs Integer, X As Single, Y As Single)Print "Donw"End SubPrivate Sub Form_MouseUp(ButtonAsInteger,ShiftAs Integer, X As Single, Y As Single)Print "Up"End SubA.DownUpClickB.ClickDownUpC.DownClickUpD.UpDownClick