VB作业
来源:互联网 发布:淘宝靠谱香水代购 编辑:程序博客网 时间:2024/06/06 17:45
Private Sub Command1_Click()
Me.Font.Size = 30
Dim a As Integer
Dim b As Integer
Dim s As String
Dim yushu As Byte
a = 1230: b = 16
While a <> 0
yushu = a Mod b
s = f(yushu) & s
a = a \ b
Wend
Print s
End Sub
Private Function f(yushu As Byte) As String
If yushu <= 9 Then
f = yushu
Else
Select Case yushu
Case 10, 11, 12, 13, 14, 15
f = Chr(yushu + 55)
End Select
End If
End Function
Me.Font.Size = 30
Dim a As Integer
Dim b As Integer
Dim s As String
Dim yushu As Byte
a = 1230: b = 16
While a <> 0
yushu = a Mod b
s = f(yushu) & s
a = a \ b
Wend
Print s
End Sub
Private Function f(yushu As Byte) As String
If yushu <= 9 Then
f = yushu
Else
Select Case yushu
Case 10, 11, 12, 13, 14, 15
f = Chr(yushu + 55)
End Select
End If
End Function
0 0
- VB作业
- VB作业
- VB作业
- VB作业
- vb作业
- VB作业
- VB作业
- VB作业
- vb作业
- vb作业
- VB作业
- vb作业
- VB作业
- vb作业
- VB作业
- VB作业
- vb作业
- vb作业
- 电压转电流op
- javascript笔试题(1)
- uva 191 Intersection
- InputStreamReader和OutputStreamWriter的用法
- Java TreeMap工作原理及实现(二)
- VB作业
- php函数imagejpeg,imagepng,imagegif参数详解
- 研读:Regulating ARM TrustZone Devices in Restricted Spaces
- Activiti生成流程图
- Tomcate 配置多个数据源
- Android Selector和Shape的组合
- PBOC借/贷记IC卡终端专用参数信息
- 作业
- 什么是SDT(安防大数据技术)?