网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

阅读下面程序

Private Function a (load As Integer)As Single

If loud<20 then

money=lnad/2

else

money=20+load

end if

a=money

End Function

Private Sub Form_Click()

Dim load As Integer,fee As Single

Load=InputBox("请输入一个数:")

Fee=a(loa@D@Print fee

End Sub

运行后的输出结果是【 】。


参考答案

更多 “ 阅读下面程序Private Function a (load As Integer)As SingleIf loud<20 thenmoney=lnad/2elsemoney=20+loadend ifa=moneyEnd FunctionPrivate Sub Form_Click()Dim load As Integer,fee As SingleLoad=InputBox("请输入一个数:")Fee=a(loa@D@Print feeEnd Sub运行后的输出结果是【 】。 ” 相关考题
考题 请在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),

考题 已知类MyClass的定义如下:classMyClass{public:voidfunctionl(MyClass&c){outc.data;}statievoidfunction2(MyClas&c){coutc.data;}voidfunction3(){outdata;}statiCvoidfunction4(){COutdata;}private:intdata;}:其中有编译错误的函数是( )。A.function1B.function2C.function3D.function4

考题 阅读下面程序:Private Function a(load As Integer) As SingleIf load <20 thenmoney = load/2elsemoney =20 + loadend ifa = moneyEnd FunctionPrivate Sub Form_Click( )Dim load As Integer, fee As SingleLoad = InputBox("请输入一个数:")fee= a(loa@D@Print feeEnd Sub输入20,运行后的输出结果是【 】。

考题 将下面的程序补充完整。注意:不改动程序结构,不得增行或删行。import java.appplet.Applet;import java.awt.Graphics;public class ex1 extends Applet{public void paint(Graphics______){int i=682;gap.drawstring(Integer.______(i),20,60);}}

考题 下面这个程序的结果是includeclass A{private:int a;public:void seta( );int geta 下面这个程序的结果是 #include<iostream.h> class A { private: int a; public: void seta( );int geta( );}; void A::seta( ) { a = 1;} int A::geta( ) {return a;} classA.1B.2C.随机输出1或2D.程序有错

考题 下面程序的结果为includeint c;class A{private:int a;static int b;public:A( ){a 下面程序的结果为 #include<iostream.h> int c; class A { private: int a; static int b; public: A( ) {a=0;c=0;} void seta( ){a++;} void setb( ){b++;}A.1 2 1B.1 2 2C.1 1 2D.2 2 2

考题 运行以下程序时,由键盘为变量load输入的数据为20,输出结果为______。 Private Function Wei(load As Integer),Money As Single If load<20 Then Money=load/2 Else Money=20+load End if Wei=Money End Function Private Sub Form. _Click() Dim load As Integer,fee As Single load=InputBox(“请输入一个数:”) fee=Wei(loaD)Print fee End SubA.10B.20C.30D.40

考题 阅读下面程序:include template class TAdd{private:T x, y;public:TAdd(T 阅读下面程序:include <iostream.h>template <class T>class TAdd{private:T x, y;public:TAdd(T a, T b){x=a;y=b;}T add(){return x +y;}};void main( ){TAdd<int>a(5,6);TAdd<double>b(2.4,5.8);cout<<"s1 ="<<A. add()<<",";cout<<"s2="<<B, add()<<end1;}写出该程序的运行结果:【 】。

考题 下面程序的结果是 include class test{private: int num; publi 下面程序的结果是 #include<iostream.h> class test{ private: int num; public: test( ); int getint( ) {return num;} ~test( );}; test::test( ) { num=0;} test::~test( ) { cout<<"Destructor is active"<<endl;} voidA.Exiting main Destructor is active Destructor is active Destructor is activeB.Exiting main Destructor is active Destructoris activeC.Exiting main Destructoris activeD.Exiting main