vb编程教程免费
如何使用vb编程输入一个三位数,将其倒序输出?
如何使用vb编程输入一个三位数,将其倒序输出?
代码如下:#includemain(){int n,a,b,cscanf(
VB怎么编写密码登陆?
刚刚写过了类似的代码 ,算了 再写下
Private Sub Command1_Click()
Static i As Integer 说明下,假设 用户名、密码 分别是 yutian8802和 123456
If i gt 2 Then
MsgBox
VB编程:输入整数n,并输入n×n矩阵的各个元素值,输出最大值及其行、列?
Private Sub Command1_Click()
Dim a(20, 20) As Integer
n CInt(InputBox(N))
Print N; n
Print
Randomize
i1 1: j1 1
For i 1 To n
For j 1 To n
a(i, j) Int(Rnd * 100)
Print Tab(5 * j); a(i, j);
If a(i, j) a(i1, j1) Then
i1 i
j1 j
End If
Next j
Print
Next i
Print
Print 最大值a( i1 , j1 ); a(i1, j1)
End Sub
Private Sub Command1_Click()
Dim a(20, 20) As Integer
n CInt(InputBox(N))
Print N; n
Print
Randomize
i1 1: j1 1
For i 1 To n
For j 1 To n
a(i, j) Int(Rnd * 100)
Print Tab(5 * j); a(i, j);
If a(i, j) a(i1, j1) Then
i1 i
j1 j
End If
Next j
Print
Next i
Print
Print 最大值a( i1 , j1 ); a(i1, j1)
End Sub