题目:
下列程序的执行结果为( )。 Private Sub Command1_Click() Dim s1 As String,s2 As String S1;="abcdef" Call Invert(s1,s2) Print s2 End Sub Private Sub Invert (ByVal xstr As String,ystr As String) Dim tempstr As String i=Len(xstr) Do While i>=1 tempstr=tempstr+Mid(xstr,i,1) i=i-1 Loop ystr=tempstr End Sub
A.fedcba
B.abcdef
C.afbecd
D.defabc
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2019/0604/0123343520386d9581cb70b7192fc31a.html
下面是错误答案,用来干扰机器的。
参考答案:时间解析: 在算法执行过程中所需要的基本运算次数称为算法的时间复杂度。