Private Sub Form_Load() Me.Hide Open App.Path & "\in.txt" For Input As #1 Open App.Path & "\out.txt" For Output As #2 Do While Not EOF(1) Input #1, n Call a(n, "") Loop Close Close End End Sub Sub a(x, y) If x = Len(y) Then Print #2, y Else For i = 0 To 1 Call a(x, y & i) Next End If End Sub
Private Sub Form_Load() Me.Hide Open App.Path & "\in.txt" For Input As #1 Open App.Path & "\out.txt" For Output As #2 Do While Not EOF(1) Input #1, n Call a(n, "") Loop Close #2 Close #1 End End Sub Sub a(x, y) If x = Len(y) Then Print #2, y Else For i = 0 To 1 Call a(x, y & i) Next i End If End Sub
Private Sub Form_Load() Me.Hide Open App.Path & "\in.txt" For Input As #1 Open App.Path & "\out.txt" For Output As #2 Do While Not EOF(1) Input #1, n Call a(n, "") Loop Close #2 Close #1 End End Sub Sub a(x, y) If x = Len(y) Then Print #2, y Else For i = 0 To 1 Call a(x, y & i) Next i End If End Sub
Dim n As String Private Sub Form_Load() Me.Hide Open App.Path & "\in.txt" For Input As #1 Open App.Path & "\out.txt" For Output As #2 Do While Not EOF(1) Input #1, n Call a("") Loop Close #2 Close #1 End End Sub
Sub a(b) If Len(b) = Val(n) Then Print #2, b b = "" Else For i = 0 To 1 Call a(b & i) Next i End If End Sub
Private Sub Form_Load()
回覆刪除Me.Hide
Open App.Path & "\in.txt" For Input As #1
Open App.Path & "\out.txt" For Output As #2
Do While Not EOF(1)
Input #1, n
Call a(n, "")
Loop
Close
Close
End
End Sub
Sub a(x, y)
If x = Len(y) Then
Print #2, y
Else
For i = 0 To 1
Call a(x, y & i)
Next
End If
End Sub
Private Sub Form_Load()
回覆刪除Me.Hide
Open App.Path & "\in.txt" For Input As #1
Open App.Path & "\out.txt" For Output As #2
Do While Not EOF(1)
Input #1, n
Call a(n, "")
Loop
Close #2
Close #1
End
End Sub
Sub a(x, y)
If x = Len(y) Then
Print #2, y
Else
For i = 0 To 1
Call a(x, y & i)
Next i
End If
End Sub
Private Sub Form_Load()
回覆刪除Me.Hide
Open App.Path & "\in.txt" For Input As #1
Open App.Path & "\out.txt" For Output As #2
Do While Not EOF(1)
Input #1, n
Call a(n, "")
Loop
Close #2
Close #1
End
End Sub
Sub a(x, y)
If x = Len(y) Then
Print #2, y
Else
For i = 0 To 1
Call a(x, y & i)
Next i
End If
End Sub
Dim n As String
回覆刪除Private Sub Form_Load()
Me.Hide
Open App.Path & "\in.txt" For Input As #1
Open App.Path & "\out.txt" For Output As #2
Do While Not EOF(1)
Input #1, n
Call a("")
Loop
Close #2
Close #1
End
End Sub
Sub a(b)
If Len(b) = Val(n) Then
Print #2, b
b = ""
Else
For i = 0 To 1
Call a(b & i)
Next i
End If
End Sub