• <cite id="uwv89"></cite>
      1. 亚洲综合小综合中文字幕,国产久爱免费精品视频,精品国产品香蕉在线,国产午夜精品在人线播放,精品一二三四区在线观看,国产成人无码免费看视频软件 ,色欲久久人妻内射,午夜在线观看成人av
        我的工控
        不積跬步,無(wú)以至千里,不積小流,無(wú)以成江海。
        級(jí)別: 略有小成
        精華主題: 0
        發(fā)帖數(shù)量: 114 個(gè)
        工控威望: 287 點(diǎn)
        下載積分: 274 分
        在線時(shí)間: 55(小時(shí))
        注冊(cè)時(shí)間: 2010-12-20
        最后登錄: 2025-08-25
        查看我的工控的 主題 / 回貼
        樓主  發(fā)表于: 2010-12-21 21:23
        用途:將十進(jìn)制轉(zhuǎn)化為二進(jìn)制
        輸入:Dec(十進(jìn)制數(shù))
        輸入數(shù)據(jù)類型:Long
        輸出:DEC_to_BIN(二進(jìn)制數(shù))
        輸出數(shù)據(jù)類型:String
        輸入的最大數(shù)為2147483647,輸出最大數(shù)為1111111111111111111111111111111(31個(gè)1)Public DEC_to_BIN(Dec As Long) As String
            DEC_to_BIN = ""
            Do While Dec > 0
                DEC_to_BIN = Dec Mod 2 & DEC_to_BIN
                Dec = Dec \ 2
            Loop
        End 用途:將二進(jìn)制轉(zhuǎn)化為十進(jìn)制
        輸入:Bin(二進(jìn)制數(shù))
        輸入數(shù)據(jù)類型:String
        輸出:BIN_to_DEC(十進(jìn)制數(shù))
        輸出數(shù)據(jù)類型:Long
        輸入的最大數(shù)為1111111111111111111111111111111(31個(gè)1),輸出最大數(shù)為2147483647Public BIN_to_DEC(ByVal Bin As String) As Long
            Dim i As Long
            For i = 1 To Len(Bin)
                BIN_to_DEC = BIN_to_DEC * 2 + Val(Mid(Bin, i, 1))
            Next i
        End 用途:將十六進(jìn)制轉(zhuǎn)化為二進(jìn)制
        輸入:Hex(十六進(jìn)制數(shù))
        輸入數(shù)據(jù)類型:String
        輸出:HEX_to_BIN(二進(jìn)制數(shù))
        輸出數(shù)據(jù)類型:String
        輸入的最大數(shù)為2147483647個(gè)字符 Public HEX_to_BIN(ByVal Hex As String) As String
            Dim i As Long
            Dim B As String
            
            Hex = UCase(Hex)
            For i = 1 To Len(Hex)
                Select Case Mid(Hex, i, 1)
                    Case "0": B = B & "0000"
                    Case "1": B = B & "0001"
                    Case "2": B = B & "0010"
                    Case "3": B = B & "0011"
                    Case "4": B = B & "0100"
                    Case "5": B = B & "0101"
                    Case "6": B = B & "0110"
                    Case "7": B = B & "0111"
                    Case "8": B = B & "1000"
                    Case "9": B = B & "1001"
                    Case "A": B = B & "1010"
                    Case "B": B = B & "1011"
                    Case "C": B = B & "1100"
                    Case "D": B = B & "1101"
                    Case "E": B = B & "1110"
                    Case "F": B = B & "1111"
                End Select
            Next i
            While Left(B, 1) = "0"
                B = Right(B, Len(B) - 1)
            Wend
            HEX_to_BIN = B
        End 用途:將二進(jìn)制轉(zhuǎn)化為十六進(jìn)制
        輸入:Bin(二進(jìn)制數(shù))
        輸入數(shù)據(jù)類型:String
        輸出:BIN_to_HEX(十六進(jìn)制數(shù))
        輸出數(shù)據(jù)類型:String
        輸入的最大數(shù)為2147483647個(gè)字符   Public BIN_to_HEX(ByVal Bin As String) As String
            Dim i As Long
            Dim H As String
            If Len(Bin) Mod 4 <> 0 Then
                Bin = String(4 - Len(Bin) Mod 4, "0") & Bin
            End If
            
            For i = 1 To Len(Bin) Step 4
                Select Case Mid(Bin, i, 4)
                    Case "0000": H = H & "0"
                    Case "0001": H = H & "1"
                    Case "0010": H = H & "2"
                    Case "0011": H = H & "3"
                    Case "0100": H = H & "4"
                    Case "0101": H = H & "5"
                    Case "0110": H = H & "6"
                    Case "0111": H = H & "7"
                    Case "1000": H = H & "8"
                    Case "1001": H = H & "9"
                    Case "1010": H = H & "A"
                    Case "1011": H = H & "B"
                    Case "1100": H = H & "C"
                    Case "1101": H = H & "D"
                    Case "1110": H = H & "E"
                    Case "1111": H = H & "F"
                End Select
            Next i
            While Left(H, 1) = "0"
                H = Right(H, Len(H) - 1)
            Wend
            BIN_to_HEX = H
        End 用途:將十六進(jìn)制轉(zhuǎn)化為十進(jìn)制
        輸入:Hex(十六進(jìn)制數(shù))
        輸入數(shù)據(jù)類型:String
        輸出:HEX_to_DEC(十進(jìn)制數(shù))
        輸出數(shù)據(jù)類型:Long
        輸入的最大數(shù)為7FFFFFFF,輸出的最大數(shù)為2147483647Public HEX_to_DEC(ByVal Hex As String) As Long
            Dim i As Long
            Dim B As Long
            
            Hex = UCase(Hex)
            For i = 1 To Len(Hex)
                Select Case Mid(Hex, Len(Hex) - i + 1, 1)
                    Case "0": B = B + 16 ^ (i - 1) * 0
                    Case "1": B = B + 16 ^ (i - 1) * 1
                    Case "2": B = B + 16 ^ (i - 1) * 2
                    Case "3": B = B + 16 ^ (i - 1) * 3
                    Case "4": B = B + 16 ^ (i - 1) * 4
                    Case "5": B = B + 16 ^ (i - 1) * 5
                    Case "6": B = B + 16 ^ (i - 1) * 6
                    Case "7": B = B + 16 ^ (i - 1) * 7
                    Case "8": B = B + 16 ^ (i - 1) * 8
                    Case "9": B = B + 16 ^ (i - 1) * 9
                    Case "A": B = B + 16 ^ (i - 1) * 10
                    Case "B": B = B + 16 ^ (i - 1) * 11
                    Case "C": B = B + 16 ^ (i - 1) * 12
                    Case "D": B = B + 16 ^ (i - 1) * 13
                    Case "E": B = B + 16 ^ (i - 1) * 14
                    Case "F": B = B + 16 ^ (i - 1) * 15
                End Select
            Next i
            HEX_to_DEC = B
        End 用途:將十進(jìn)制轉(zhuǎn)化為十六進(jìn)制
        輸入:Dec(十進(jìn)制數(shù))
        輸入數(shù)據(jù)類型:Long
        輸出:DEC_to_HEX(十六進(jìn)制數(shù))
        輸出數(shù)據(jù)類型:String
        輸入的最大數(shù)為2147483647,輸出最大數(shù)為7FFFFFFFPublic DEC_to_HEX(Dec As Long) As String
            Dim a As String
            DEC_to_HEX = ""
            Do While Dec > 0
                a = CStr(Dec Mod 16)
                Select Case a
                    Case "10": a = "A"
                    Case "11": a = "B"
                    Case "12": a = "C"
                    Case "13": a = "D"
                    Case "14": a = "E"
                    Case "15": a = "F"
                End Select
                DEC_to_HEX = a & DEC_to_HEX
                Dec = Dec \ 16
            Loop
        End 用途:將十進(jìn)制轉(zhuǎn)化為八進(jìn)制
        輸入:Dec(十進(jìn)制數(shù))
        輸入數(shù)據(jù)類型:Long
        輸出:DEC_to_OCT(八進(jìn)制數(shù))
        輸出數(shù)據(jù)類型:String
        輸入的最大數(shù)為2147483647,輸出最大數(shù)為17777777777   Public DEC_to_OCT(Dec As Long) As String
            DEC_to_OCT = ""
            Do While Dec > 0
                DEC_to_OCT = Dec Mod 8 & DEC_to_OCT
                Dec = Dec \ 8
            Loop
        End 用途:將八進(jìn)制轉(zhuǎn)化為十進(jìn)制
        輸入:Oct(八進(jìn)制數(shù))
        輸入數(shù)據(jù)類型:String
        輸出:OCT_to_DEC(十進(jìn)制數(shù))
        輸出數(shù)據(jù)類型:Long
        輸入的最大數(shù)為17777777777,輸出的最大數(shù)為2147483647Public OCT_to_DEC(ByVal Oct As String) As Long
            Dim i As Long
            Dim B As Long
            
            For i = 1 To Len(Oct)
                Select Case Mid(Oct, Len(Oct) - i + 1, 1)
                    Case "0": B = B + 8 ^ (i - 1) * 0
                    Case "1": B = B + 8 ^ (i - 1) * 1
                    Case "2": B = B + 8 ^ (i - 1) * 2
                    Case "3": B = B + 8 ^ (i - 1) * 3
                    Case "4": B = B + 8 ^ (i - 1) * 4
                    Case "5": B = B + 8 ^ (i - 1) * 5
                    Case "6": B = B + 8 ^ (i - 1) * 6
                    Case "7": B = B + 8 ^ (i - 1) * 7
                End Select
            Next i
            OCT_to_DEC = B
        End 用途:將二進(jìn)制轉(zhuǎn)化為八進(jìn)制
        輸入:Bin(二進(jìn)制數(shù))
        輸入數(shù)據(jù)類型:String
        輸出:BIN_to_OCT(八進(jìn)制數(shù))
        輸出數(shù)據(jù)類型:String
        輸入的最大數(shù)為2147483647個(gè)字符Public BIN_to_OCT(ByVal Bin As String) As String
            Dim i As Long
            Dim H As String
            If Len(Bin) Mod 3 <> 0 Then
                Bin = String(3 - Len(Bin) Mod 3, "0") & Bin
            End If
            
            For i = 1 To Len(Bin) Step 3
                Select Case Mid(Bin, i, 3)
                    Case "000": H = H & "0"
                    Case "001": H = H & "1"
                    Case "010": H = H & "2"
                    Case "011": H = H & "3"
                    Case "100": H = H & "4"
                    Case "101": H = H & "5"
                    Case "110": H = H & "6"
                    Case "111": H = H & "7"
                End Select
            Next i
            While Left(H, 1) = "0"
                H = Right(H, Len(H) - 1)
            Wend
            BIN_to_OCT = H
        End 用途:將八進(jìn)制轉(zhuǎn)化為二進(jìn)制
        輸入:Oct(八進(jìn)制數(shù))
        輸入數(shù)據(jù)類型:String
        輸出:OCT_to_BIN(二進(jìn)制數(shù))
        輸出數(shù)據(jù)類型:String
        輸入的最大數(shù)為2147483647個(gè)字符 Public OCT_to_BIN(ByVal Oct As String) As String
            Dim i As Long
            Dim B As String
            
            For i = 1 To Len(Oct)
                Select Case Mid(Oct, i, 1)
                    Case "0": B = B & "000"
                    Case "1": B = B & "001"
                    Case "2": B = B & "010"
                    Case "3": B = B & "011"
                    Case "4": B = B & "100"
                    Case "5": B = B & "101"
                    Case "6": B = B & "110"
                    Case "7": B = B & "111"
                End Select
            Next i
            While Left(B, 1) = "0"
                B = Right(B, Len(B) - 1)
            Wend
            OCT_to_BIN = B
        End 用途:將八進(jìn)制轉(zhuǎn)化為十六進(jìn)制
        輸入:Oct(八進(jìn)制數(shù))
        輸入數(shù)據(jù)類型:String
        輸出:OCT_to_HEX(十六進(jìn)制數(shù))
        輸出數(shù)據(jù)類型:String
        輸入的最大數(shù)為2147483647個(gè)字符Public OCT_to_HEX(ByVal Oct As String) As String
            Dim Bin As String
            Bin = OCT_to_BIN(Oct)
            OCT_to_HEX = BIN_to_HEX(Bin)
        End 用途:將十六進(jìn)制轉(zhuǎn)化為八進(jìn)制
        輸入:Hex(十六進(jìn)制數(shù))
        輸入數(shù)據(jù)類型:String
        輸出:HEX_to_OCT(八進(jìn)制數(shù))
        輸出數(shù)據(jù)類型:String
        輸入的最大數(shù)為2147483647個(gè)字符Public HEX_to_OCT(ByVal Hex As String) As String
            Dim Bin As String
            Hex = UCase(Hex)
            Bin = HEX_to_BIN(Hex)
            HEX_to_OCT = BIN_to_OCT(Bin)
        End
        VB自帶函數(shù):
        十進(jìn)制轉(zhuǎn)八進(jìn)制:Oct(num)
        十六進(jìn)制轉(zhuǎn)八進(jìn)制:oct("&H" & num)
        十進(jìn)制轉(zhuǎn)十六進(jìn)制:hex(num)
        八進(jìn)制轉(zhuǎn)十六進(jìn)制:hex("&O" & num)十六進(jìn)制轉(zhuǎn)換為十進(jìn)制
            Dim str As String                    
            str = Text2.Text
            Text10.Text = CLng("&H" & str)
        這無(wú)盡的雨絲,有沒有勾起你的回憶?對(duì)你來(lái)說(shuō),也許我不再重要。但只要你能記得我,我就已經(jīng)無(wú)比欣慰。知道這雨讓我想起了什么嗎?你的眼淚。一滴滴的,晶瑩如珠,包裹著過(guò)去歲月的沙粒,在我的心頭滾動(dòng)。
        songyanwan
        級(jí)別: *
        精華主題: * 篇
        發(fā)帖數(shù)量: * 個(gè)
        工控威望: * 點(diǎn)
        下載積分: * 分
        在線時(shí)間: (小時(shí))
        注冊(cè)時(shí)間: *
        最后登錄: *
        查看songyanwan的 主題 / 回貼
        1樓  發(fā)表于: 2010-12-21 21:44
        不錯(cuò) 啊
        該把程序一塊發(fā)上來(lái)
        子丑寅卯9
        好鋼是煉出來(lái)的; 好妞是泡出來(lái)的!
        級(jí)別: 網(wǎng)絡(luò)英雄
        精華主題: 0
        發(fā)帖數(shù)量: 1223 個(gè)
        工控威望: 6798 點(diǎn)
        下載積分: 9012 分
        在線時(shí)間: 335(小時(shí))
        注冊(cè)時(shí)間: 2008-05-17
        最后登錄: 2024-07-10
        查看子丑寅卯9的 主題 / 回貼
        2樓  發(fā)表于: 2011-01-08 15:39
        不錯(cuò),學(xué)習(xí)了。
        (沈陽(yáng))承接非標(biāo)自動(dòng)化設(shè)計(jì),調(diào)試及改造;各種通信控制;伺服調(diào)試,定位同步控制及專機(jī)制造。手機(jī)&微信同步(來(lái)訪注明家園):18680531562 。
        徐德海
        風(fēng)之調(diào)零
        級(jí)別: 探索解密
        精華主題: 0
        發(fā)帖數(shù)量: 17 個(gè)
        工控威望: 114 點(diǎn)
        下載積分: 628 分
        在線時(shí)間: 42(小時(shí))
        注冊(cè)時(shí)間: 2011-01-07
        最后登錄: 2020-12-19
        查看徐德海的 主題 / 回貼
        3樓  發(fā)表于: 2011-01-08 17:54
        okokok
        風(fēng)之調(diào)菱
        etdssdabb
        只有學(xué)而知之,沒有生而知之
        級(jí)別: 家園常客
        精華主題: 0
        發(fā)帖數(shù)量: 359 個(gè)
        工控威望: 676 點(diǎn)
        下載積分: 7861 分
        在線時(shí)間: 231(小時(shí))
        注冊(cè)時(shí)間: 2010-03-16
        最后登錄: 2019-04-15
        查看etdssdabb的 主題 / 回貼
        4樓  發(fā)表于: 2011-03-21 15:26
        好東西,學(xué)習(xí)。
        半路出家
        級(jí)別: 探索解密
        精華主題: 0
        發(fā)帖數(shù)量: 12 個(gè)
        工控威望: 110 點(diǎn)
        下載積分: 509 分
        在線時(shí)間: 9(小時(shí))
        注冊(cè)時(shí)間: 2010-10-26
        最后登錄: 2014-07-25
        查看半路出家的 主題 / 回貼
        5樓  發(fā)表于: 2011-04-30 11:20
        不錯(cuò)
        adriano880
        級(jí)別: 探索解密
        精華主題: 0
        發(fā)帖數(shù)量: 24 個(gè)
        工控威望: 129 點(diǎn)
        下載積分: 643 分
        在線時(shí)間: 22(小時(shí))
        注冊(cè)時(shí)間: 2011-04-10
        最后登錄: 2012-11-04
        查看adriano880的 主題 / 回貼
        6樓  發(fā)表于: 2011-04-30 14:12
        henhao
        tim_liang
        級(jí)別: *
        精華主題: * 篇
        發(fā)帖數(shù)量: * 個(gè)
        工控威望: * 點(diǎn)
        下載積分: * 分
        在線時(shí)間: (小時(shí))
        注冊(cè)時(shí)間: *
        最后登錄: *
        查看tim_liang的 主題 / 回貼
        7樓  發(fā)表于: 2011-05-01 08:22
        謝謝提供,能寫一個(gè)程序發(fā)上來(lái)嗎?

        主站蜘蛛池模板: 日韩有码中文字幕国产| 日韩av一区二区三区不卡| 男女猛烈激情xx00免费视频| 国产婷婷综合在线视频中文| 国产一级片内射在线视频| 久久96热在精品国产高清| 国产午夜精品一区理论片| 免费无码一区无码东京热| 亚洲美免无码中文字幕在线| 怡红院一区二区三区在线| 国产精品亚洲五月天高清| 人成午夜免费视频无码| 亚洲AV无码破坏版在线观看| 成年无码av片在线蜜芽| 久久久久无码精品国产h动漫| 婷婷色香五月综合缴缴情香蕉| 国产亚洲一区二区三区四区| 悠悠人体艺术视频在线播放| 你懂的在线视频一区二区| 色老头亚洲成人免费影院| 四虎永久免费高清视频| 日韩一区二区三区女优丝袜| 人妻中文字幕av资源站| 精品久久人人做爽综合| 永久黄网站色视频免费直播| 久久精品国产只有精品96| 久久精品国产福利亚洲av| 91中文字幕一区在线| 香蕉乱码成人久久天堂爱| 欧美日韩一区二区三区视频播放| 午夜成人无码免费看网站| 亚洲第一精品一二三区| 亚洲蜜臀av乱码久久| 日韩精品一区二区高清视频 | 18禁国产一区二区三区| 中文文精品字幕一区二区| 亚洲精品一区二区三区免| 亚州av第二区国产精品| 亚洲国产精品日韩av专区| 国产成人午夜福利在线播放| 亚洲高清 一区二区三区|