1
我必須做出具有這樣輸出的程序:轉換十進制值來獲得進展分割二元4GL
def var vbit as logical extent 64 initial "false".
def var x as char form "x(16)" /* to store the decimal input */
Input : 2220010000000000
convert the value into:
22=00100010
20=00100000
01=00000001
00=00000000
00=00000000
00=00000000
00=00000000
那麼如果二進制進行排序,輸出將是:
123456789
00100010001000000000000100000000000000000000000000000000
從這個二進制文件中,像在圖像上更改vbit [x]。
感謝很多答案。
你真的需要處理十進制數嗎?還是INTEGER? –
我的意思是十六進制轉換爲二進制 – meo