早教吧作业答案频道 -->其他-->
应为语句结束怎么解决?求修改下列语句!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...
看了应为语句结束怎么解决?求修改下...的网友还看了以下:
学校决定修建一块长方形草坪.学校决定修建一块长方形草坪,长为am,宽为bm,并在草坪上修建如图2所 2020-05-22 …
某类决策复杂,决策过程中受动态社会环境的约束,决策者只有有限的能力,且带有偏见。那么这类决策属 2020-05-24 …
某类决策复杂、决策过程中受动态社会环境的约束,决策者只有有限的能力,且带有偏见,那么这类决策属 2020-05-24 …
应为语句结束怎么解决?求修改下列语句!ModuleModule1SubMain()DimbUse() 2020-11-01 …
十一届全国人大常委会表决通过的《中华人民共和国刑法修正案(八)》,于2011年5月1日起施行.表决该 2020-11-06 …
2011年3月11日,国家工商总局副局长刘凡指出,社会各界要求修改《广告法》的呼声十分强烈。目前已形 2020-12-05 …
按照要求修改下面的这段话,使之更精美。你的浮躁决定你的冲动,你的奔放决定你的豪爽,你的沉稳决定你的踏 2020-12-20 …
按照要求修改下面的这段话,使之更顺畅。①你的浮躁决定你的冲动,②你的奔放决定你的豪爽,③你的沉稳决定 2020-12-20 …
按照要求修改下面这段话,使它更完美。A你的浮躁决定你的冲动,B你的奔放决定你的豪爽,C你的沉稳决定你 2020-12-20 …
求一个数是另一个数的百分之几的实际问题!1.填空(1)解决百分数的问题可以依照解决()问题的办法.( 2021-01-05 …