早教吧作业答案频道 -->其他-->
应为语句结束怎么解决?求修改下列语句!ModuleModule1SubMain()DimbUse()AsBooleanDimlStr()AsString*1DimnCountAsByteEndSubPublicSubCombination(ByVallstStrAsString)DimiAsByteDimjAsByteDimStrLenAsByteStrLen=Len(
题目详情
应为语句结束怎么解决?求修改下列语句!
Module Module1
Sub Main()
Dim bUse() As Boolean
Dim lStr() As String * 1
Dim nCount As Byte
End Sub
Public Sub Combination(ByVal lstStr As String)
Dim i As Byte
Dim j As Byte
Dim StrLen As Byte
StrLen = Len(lstStr)
ReDim bUse(1 To StrLen) As Boolean
ReDim lStr(1 To StrLen) As String * 1
For i = 1 To StrLen
lStr(i) = Mid(lstStr,i,1)
Next
For i = 1 To StrLen
nCount = i
GoWith(StrLen,1,0,"")
Next
End Sub
Dim bUse() As Boolean
Dim lStr() As String * 1
Dim nCount As Byte
Public Sub GoWith(ByVal ECount As Byte,ByVal nStart As Byte,ByVal Deep As Byte,ByVal lastStr As String)
Dim i As Byte
If Deep = nCount Then
Debug.Print(lastStr)
Exit Sub
End If
For i = nStart To ECount
If Not bUse(i) Then
bUse(i) = True
GoWith(ECount,i,Deep + 1,lastStr & lStr(i))
bUse(i) = False
End If
Next
End Sub
Private Sub Form_Load()
Combination("wxyz")
End Sub
End Module
Module Module1
Sub Main()
Dim bUse() As Boolean
Dim lStr() As String * 1
Dim nCount As Byte
End Sub
Public Sub Combination(ByVal lstStr As String)
Dim i As Byte
Dim j As Byte
Dim StrLen As Byte
StrLen = Len(lstStr)
ReDim bUse(1 To StrLen) As Boolean
ReDim lStr(1 To StrLen) As String * 1
For i = 1 To StrLen
lStr(i) = Mid(lstStr,i,1)
Next
For i = 1 To StrLen
nCount = i
GoWith(StrLen,1,0,"")
Next
End Sub
Dim bUse() As Boolean
Dim lStr() As String * 1
Dim nCount As Byte
Public Sub GoWith(ByVal ECount As Byte,ByVal nStart As Byte,ByVal Deep As Byte,ByVal lastStr As String)
Dim i As Byte
If Deep = nCount Then
Debug.Print(lastStr)
Exit Sub
End If
For i = nStart To ECount
If Not bUse(i) Then
bUse(i) = True
GoWith(ECount,i,Deep + 1,lastStr & lStr(i))
bUse(i) = False
End If
Next
End Sub
Private Sub Form_Load()
Combination("wxyz")
End Sub
End Module
▼优质解答
答案和解析
你是不是要改成这个样子?以下代码在vb6下调试通过修改模块代码如下Dim bUse() As BooleanDim lStr() As String * 1Dim nCount As BytePublic Sub Combination(ByVal lstStr As String)Dim i As ByteDim j As ByteDim...
看了应为语句结束怎么解决?求修改下...的网友还看了以下:
“千锤万凿出深山,烈火焚烧若等闲;粉骨碎身浑不怕,要留清白在人间.”这首诗蕴含着一定的科学知识,诗 2020-05-13 …
碘的水解碘水解的化学方程式是什么生成HIO3还是HIO,谢谢为什么不是水解反应呢?水解反应水解反应 2020-05-17 …
碘的水解碘水解的化学方程式是什么生成HIO3还是HIO,为什么不是水解反应呢?水解反应水解反应是水 2020-05-17 …
(a是三角形的底,h是底所对应的高)注释:三边均可为底,应理解为:三边与之对应的高的积的一半是三角 2020-05-20 …
1、解释词语的含义.是该解释其词语字典的意思呢?还是根据文章的上下文及语境解释其词语的含义呢?2、 2020-06-03 …
此句中的subjectto最佳应理解为什麼意思呢?considerindetailandsubje 2020-06-07 …
对画线句理解有误的一项是A.昨夜见军帖,可汗大点兵,军书十二卷,卷卷有爷名。(此句应理解为“皇上大规 2020-11-02 …
反问句解惑你怎么没来呢?语境是抱怨没来,语意是你应该来!可是一般反问句变陈述句的方法都说是:否定词去 2020-11-26 …
这应该是一种用法,而不是成语。它是病句解析的解释中的一句话,原句是:检查句中的并列结构。并列结构是指 2020-11-26 …
小石潭记有4中解法,写出相应句子,以及分析.4种解法指:侧面描写,动静结合,移步换景,借景抒情我在此 2020-12-01 …