自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创 冒泡法排序

Private Sub Command1_Click()Me.Font.Size = 30Dim a(10) As IntegerDim i As IntegerDim t As IntegerDim p As StringFor i = 1 To 10  a(i) = 10 + Int(Rnd() * 100)  Print a(i);Next iPrin

2016-05-07 18:02:59 251

原创 十个数排大小 选择排序法

Private Sub Command1_Click()Me.Font.Size = 30Dim a(10) As IntegerDim i As IntegerFor i = 1 To 10a(i) = 10 + Int(Rnd() * 100)Print a(i);Next iPrintDim j As IntegerFor j = 1 To 9Fo

2016-05-07 17:33:48 920

原创 十进制转十六进制

Private Sub Command1_Click()Me.Font.Size = 30Dim a As IntegerDim b As IntegerDim s As StringDim yushu As Bytea = 1230: b = 16While a yushu = a Mod bIf yushu s = yushu & sElses

2016-05-07 17:10:26 207

原创 多位数乘一位数

Private Sub Command1_Click()   Cls   Dim a() As Long, i As Long   Dim b As String   Dim c As Long   Dim changdu As Long   changdu = Len(Text1.Text)   ReDim a(changdu)   For i = 1 To ch

2016-04-21 17:25:21 249

原创 积不超过四位数

Private Sub Command1_Click()Me.Font.Size = 70Dim n1 As ByteDim n2 As ByteDim yushu As ByteDim shang As Byten1 = Int(Val(Me.Text1.Text))n2 = Int(Val(Me.Text2.Text))tempresult = n1 * n

2016-04-14 16:59:55 282

原创 画一个圈圈

Private Sub Command2_Click()Form1.ClsText1.Text = "清除实心圆"End SubPrivate Sub Command3_Click()EndEnd SubPrivate Sub Form_Load()End Sub

2016-04-14 16:41:28 326

原创 一加一加到无穷

Option ExplicitDim i As IntegerDim sum As IntegerPrivate Sub Command1_Click()ClsFont.Size = 70Static i As Integeri = i + 1Print iEnd Sub Function f(x As Integer) As Long Dim i

2016-04-14 16:26:44 1159

原创 A和B比大小

Private Sub Command1_Click()ClsMe.Font.Size = 50Dim a As IntegerDim b As IntegerDim swap As Integera = Int(Rnd * 1000)b = Int(Rnd * 1000)If a swap = aa = bb = swapEnd If

2016-03-31 17:35:23 450

原创 VVVVVB

Visual basic听起来满高大上的!学之前,满满的骄傲。当我听了第一节课,呵呵。坑爹有木有啊!听不懂,听不懂啊!但上机写出我人生中第一个VB程序,自己还是蛮厉害的。哈哈哈,

2016-03-31 17:20:47 1122

原创 15个数排序!

Private Sub Command1_Click()ClsFont.Size = 30Dim a As IntegerDim sierdun(15) As Integern = 1While n sierdun(n) = Int(Rnd * 1000)  n = n + 1WendDim swap As Integerm = 1While

2016-03-31 17:03:30 434

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除