在窗体上画一个名称为Command1的命令按钮,然后编写如下通用过程和命令按钮的事件过程: Private Funcdonf(m As Integer) If m Mod2=0 Then f=m E1Se f=1 End If End FunCdOn Private Sub Cmnmalldl_CUCk() Dimi As Integer S=0 Fori=1 To 5 s=s+f(i)
查看答案
下列程序的执行结果为()。 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 DoW
A. abcdef
B. afbecd
C. fedcba
D. defabc
A.easily useB.of use easilyC.easy to useD.easily to use
A. easily use
B. of use easily
C. easy to use
D. easily to use
运行以下程序后,输出的图案是()。
Form1.ClS
A$=Strillg$(10,“*”)
Fori=1 To 5
n=10-2*I
X$=A$:Y$=Space$(n)
Mid$(X$,i+1,n)=Y$
PrintX$
Nexti
A.make you possibleB.be made for youC.make it possible for youD.make you
A. make you possible
B. be made for you
C. make it possible for you
D. make you