vb一道题,帮我看看我的要怎么修改才对,如果能帮我,追加200悬赏,十分感谢
PrivateSubForm_Activate()CallpictEndSubPublicSubpict()DimiAsInteger,jAsIntegerFori=1T...
Private Sub Form_Activate()
Call pict
End Sub
Public Sub pict()
Dim i As Integer, j As Integer
For i = 1 To 9
Print Tab(12 - i);
For j = 1 To 2 * i - 1
Print Chr(65 + i - 1);
Next j
Print
Next i
End Sub 展开
Call pict
End Sub
Public Sub pict()
Dim i As Integer, j As Integer
For i = 1 To 9
Print Tab(12 - i);
For j = 1 To 2 * i - 1
Print Chr(65 + i - 1);
Next j
Next i
End Sub 展开
展开全部
Private Sub Form_Activate()
Call pict
End Sub
Public Sub pict()
Dim i As Integer, j As Integer
For i = 1 To 9
Print Tab(12 - i);
For j = 1 To 2 * i - 1
If i Mod 2 = 0 Then
If j Mod 2 = 0 Then
Print " ";
Else
Print Chr(49 + i - 1);
End If
Else
If j Mod 2 = 0 Then
Print " ";
Else
Print Chr(65 + i - 1);
End If
End If
Next j
Next i
End Sub
展开全部
Option Explicit
Private Sub Form_Activate()
Call pict
End Sub
Public Sub pict()
Dim i As Integer, j As Integer
For i = 1 To 9
Print Tab(12 - i);
For j = 1 To 2 * i - 1
If j Mod 2 = 0 Then
Print " ";
Else
If i Mod 2 = 0 Then
Print CStr(i);
Else
Print Chr(65 + i - 1);
End If
End If
Next j
Next i
End Sub
效果:
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Form_Activate()
Call pict
End Sub
Public Sub pict()
Dim i As Integer, j As Integer
Dim n As Integer
For i = 1 To 9
Print Tab(12 - i);
For j = 1 To 2 * i - 1
If j Mod 2 = 1 Then
If i Mod 2 = 1 Then
Print Chr(65 + i - 1);
Else
Print CStr(i);
End If
Else
Print " ";
End If
Next j
Print
Next i
End Sub
Call pict
End Sub
Public Sub pict()
Dim i As Integer, j As Integer
Dim n As Integer
For i = 1 To 9
Print Tab(12 - i);
For j = 1 To 2 * i - 1
If j Mod 2 = 1 Then
If i Mod 2 = 1 Then
Print Chr(65 + i - 1);
Else
Print CStr(i);
End If
Else
Print " ";
End If
Next j
Next i
End Sub
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你这个只有字母没有数字的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询