主题:10转16谁会做?白送分!!!!!!!!!!
54小诚
[专家分:90] 发布于 2008-04-29 17:14:00
10转16谁会做?白送分!!!!!!![em3][em3][em3][em3][em3][em1][em2][em3][em4][em5][em6][em7][em8][em9][em10][em11][em12][em13][em14][em15][em16][em17][em18][em19][em20][em30][em29][em28][em27][em26][em25][em24][em23][em22][em21][em31][em32][em33][em34]
回复列表 (共14个回复)
12 楼
593170024 [专家分:500] 发布于 2009-11-06 22:43:00
两个语句解决
input n
print hex$(n)
13 楼
zihao1231 [专家分:150] 发布于 2009-12-14 21:08:00
这个很简单!
CLS
INPUT A
PRINT HEX$(A)
END
14 楼
QB71 [专家分:1300] 发布于 2009-12-22 20:09:00
我通常10 to 16 是这样的:
function TenToHex(TenDig as long)as string
const strhex as string="0123456789ABCDEF"
dim k as long,i as lon
dim strTemp as string
k=tendig
while tendig>0
strtemp=strtemp+mid(strhex,(k mod 16)+1,1)
k=int(k/16)
wend
TenToHex=strTemp
end function
我来回复