将一系列INTEGER值转换为HEXA并将其存储到文件中 [英] CONVERTING A series of INTEGER values TO HEXA and storing it to a file

查看:103
本文介绍了将一系列INTEGER值转换为HEXA并将其存储到文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我写作

将整数值转换为相应的六进制值并将其存储到文件中

例如:

在文件中,我需要这样
15 0xf(0x必填),
255 0xff
254 0xfe

解决方案

请参见此处 [ ^ ]一些有用的信息,尽管我确信您可以找到一种简单的算法来做到这一点.


将它们写到文件中,强制性为0x是我没有得到的

Plz help me in writing
a prog
that coverts a integer values to respective hexa value and store it to a file

eg:

in file i need like this
15 0xf(0x mandatory),
255 0xff
254 0xfe

解决方案

See here[^] for some useful information, although I''m sure you could figure out a simple algorithm to do the same.


writing them to file that to 0x mandatory is what i am not getting


这篇关于将一系列INTEGER值转换为HEXA并将其存储到文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆