作业
l6585699
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
作业一
Private Sub Commandl_Click () Dim s As String Dim a As LoadpictureColorConstants s=Label1.Caption Label1.Caption=Label2.Caption Label2.Caption=s a=Label1.ForeColor Label1.Forecolor=Label2.F原创 2016-03-27 19:38:27 · 289 阅读 · 0 评论 -
15电气 李少振 三位数乘一位数程序
Option Base 1 Private Sub Command1_Click() Me.Font.Size = 70 Dim n1() As Byte, n1Len As Long ‘ 定义n1为字节型变量,长度为四个字节 Dim n2() As Byte, n2Len As Long Dim yushu1 As By原创 2016-04-21 16:13:23 · 277 阅读 · 0 评论 -
15 电气 李少振 十进制化二进制程序代码
Private Sub Command1_Click() Me.Font.Size = 60 Print erjinzhi(120) End Sub Private Function erjinzhi(m As Byte) AsString Dim n As Byte n= m Const er As Byte = 2 Dim returnS原创 2016-04-28 16:54:08 · 511 阅读 · 0 评论 -
15 电气 李少振 十进制化十六进制程序代码
Private Sub Command1_Click() Me.Font.Size = 60 Print D2H(85) End Sub Public Function D2H(Dec As Long) As String Dim a As String D2H = "" Do While Dec > 0 a = C原创 2016-04-28 16:55:25 · 398 阅读 · 0 评论 -
Vb两位数乘一位数 电气2012
Option Base 1 Private Sub Command1_Click() Me.Font.Size = 70 Dim n1() As Byte, n1Len As Long Dim n2() As Byte, n2Len As Long Dim yushu1 As Byte Dim yushu2 As Byte Dim sh原创 2016-04-14 17:36:39 · 275 阅读 · 0 评论 -
15-电气-2012 VB语言中计算一位数乘一位数
Private Sub Command1_Click() Me.Font.Size = 70 Dim n1 As Byte Dim n2 As Byte Dim yushu As Byte Dim shang As Byte Dim tempResult As Byte n1 = Int(Val(Me.Text1原创 2016-04-14 17:04:29 · 286 阅读 · 0 评论 -
15-电气-李少振 在VB中使用循环结构排序
1.首先打开VB6.0 2.在窗体的适当位置创建一个commandbutton,并在其属性窗口中将caption改为“排序”。 3.在窗体的适当位置创建一个textbox。 4.在窗体中双击“排序”,并在弹出的对话框中输入代码。 代码如下: Option Base 1 Private Sub Command1_Click() Cls Dim n As Integer原创 2016-04-14 16:20:00 · 363 阅读 · 0 评论 -
应用VB语言程序生成十个随机数
1.在窗体的适当位置创建一个commandbutton,并在其属性窗口中将caption改为“生成数”。 2.在窗体中双击“生成数”,并在弹出的对话框中输入如下代码: Private Sub Command1_Click() Cls Dim n As Integer Dim wzs(10) As Integer n = 1 While n wzs(n) = Int(Rnd * 1原创 2016-04-14 16:15:56 · 9427 阅读 · 0 评论 -
作业二
Private Sub Command1_Click() Cls Dim a As Integer Dim b As Integer Dim c As Integer Dim d As Integer Dim e As Integer Dim f As Integer Dim g As Integer Dim h As Integer Dim i As Integer Dim原创 2016-03-27 19:50:22 · 234 阅读 · 0 评论 -
15电气 李少振 多位数乘以一位数程序
Private Sub Command1_Click() Me.Font.Size = 70 Cls Dim a() As Byte Dim r() As Byte Dim rm As Long Dim d As Byte Dim b As Byte Dim c As Byte Dim chang As Long, i As Long chang = Len(Text1.Tex原创 2016-04-21 17:28:21 · 331 阅读 · 0 评论
分享