转换为十六进制值 [英] conversion into hexadecimal values

查看:103
本文介绍了转换为十六进制值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

im在c.i中编程必须写入大约100个十六进制值到

一个文件。我该怎么办?请帮助我

hello
im programming in c.i have to write about 100 hexadecimal values in to
a file. how do i do it?pls help me

推荐答案

< sw ************* ***@yahoo.comwrote:
<sw****************@yahoo.comwrote:

im在ci编程必须将大约100个十六进制值写入

a文件。我该怎么办?请帮助我
im programming in c.i have to write about 100 hexadecimal values in to
a file. how do i do it?pls help me



计算机文件由1'和0'组成。十六进制是一个*表示*

的数字。我建议你阅读链接中的文章,重新制定你的

问题,如果你还有一个,然后重新发布。

http://en.wikipedia.org/wiki/Hexadecimal


Chris Dollin说:


< snip>
Chris Dollin said:

<snip>

没有十六进制值;
There are no "hexadecimal values";



但是,如果你读取C标准,那么你可以原谅你有没有。

次的术语有点松散。


< snip>


-

Richard Heathfield< http://www.cpax.org.uk>

电邮:-www。 + rjh @

谷歌用户:< http://www.cpax.org.uk/prg/writings/googly.php>

Usenet是一个奇怪的放置" - dmr 1999年7月29日

You could, however, be forgiven for thinking there are, if you were
reading the C Standard. It is a little loose in its terminology at
times.

<snip>

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999


8月30日晚上8点03分,锇 < r124c4u ... @ comcast.netwrote:
On Aug 30, 8:03 pm, "osmium" <r124c4u...@comcast.netwrote:

< sweeet_addictio ... @ yahoo.comwrote:
<sweeet_addictio...@yahoo.comwrote:
在ci编程的
必须将大约100个十六进制值写入

a文件。我该怎么办?请帮助我
im programming in c.i have to write about 100 hexadecimal values in to
a file. how do i do it?pls help me



计算机文件由1'和0'组成。十六进制是一个*表示*

的数字。我建议你阅读链接中的文章,重新制定你的

问题,如果你还有一个,然后重新发布。

http://en.wikipedia.org/wiki/Hexadecimal



对不起..可能是我的问题不清楚。我必须将

以下值写入文件(比如使用fwrite)


4d 54 68 64 00 00 00 06 00 00 00 01 00 80 4d 54 72 6b 00 00 00 8c 00

ff 58

04 04 02 30 08 00 ff 59 02 00 00 00 90 3c 28 81 00 90 3c 00 00 90 3c

1e 81

00 90 3c 00 00 90 43 2d 81 00 90 43 00 00 90 43 32 81 00 90 43 00 00

90 45

2d 81 00 90 45 00 00 90 45 32 81 00 90 45 00 00 90 43 23 82 00 90 43

00 00

90 41 32 81 00 90 41 00 00 90 41 2d 81 00 90 41 00 00 90 40 32 40 90

40 00

40 90 40 28 40 90 40 00 40 90 3e 2d 40 90 3e 00 40 90 3e 32 40 90 3e

00 40

90 3c 1e 82 00 90 3c 00 00 ff 2f 00

所有这些值都要写入文件

我该怎么办?


im sorry ..may be my question wasnt tht clear.i have to write the
following values into a file(say using fwrite)

4d 54 68 64 00 00 00 06 00 00 00 01 00 80 4d 54 72 6b 00 00 00 8c 00
ff 58
04 04 02 30 08 00 ff 59 02 00 00 00 90 3c 28 81 00 90 3c 00 00 90 3c
1e 81
00 90 3c 00 00 90 43 2d 81 00 90 43 00 00 90 43 32 81 00 90 43 00 00
90 45
2d 81 00 90 45 00 00 90 45 32 81 00 90 45 00 00 90 43 23 82 00 90 43
00 00
90 41 32 81 00 90 41 00 00 90 41 2d 81 00 90 41 00 00 90 40 32 40 90
40 00
40 90 40 28 40 90 40 00 40 90 3e 2d 40 90 3e 00 40 90 3e 32 40 90 3e
00 40
90 3c 1e 82 00 90 3c 00 00 ff 2f 00
all these values are to be written into a file
how do i do it?


这篇关于转换为十六进制值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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