Mail Archives: djgpp/1998/07/30/10:01:26
From: | Vic <tudor AT cam DOT org>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: How to change numbers to HEX?
|
Date: | Thu, 30 Jul 1998 09:27:56 -0400
|
Organization: | Communications Accessibles Montreal, Quebec Canada
|
Lines: | 14
|
Message-ID: | <35C074DC.7BB0@cam.org>
|
References: | <01bdbade$b8c70a40$4a6cc5c3 AT default>
|
NNTP-Posting-Host: | dialup-678.hip.cam.org
|
Mime-Version: | 1.0
|
CC: | pekkaka AT dlc DOT fi
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Finland wrote:
> here's my prroblems ..
>
> 1.the HEX's are written backwards in the savefile
> 2.how do i get the comp to write them backwards? or read?
> 3.then the program should change numbers to hex and hex to numbers, how
> do i write this?.
you are either confused, or you don't explain very well your problem. Is
your savefile a binary file or a text one? do you use something like
fwrite() to write to it?
if yes, your decimal numbers are automatically converted when you write
to the file and when you read, you supply decimals and you get decimals.
if this is not the case, please explain more.
- Raw text -