Click here to Skip to main content
15,665,000 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Plz help me in writing
a prog
that coverts a integer values to respective hexa value and store it to a file


in file i need like this
15 0xf(0x mandatory),
255 0xff
254 0xfe
Tarakeshwar Reddy 25-Jan-12 12:39pm    
What you tried? No one is going to do your homework. Ask a specfic question and you might get an answer.

See here[^] for some useful information, although I'm sure you could figure out a simple algorithm to do the same.
Share this answer
writing them to file that to 0x mandatory is what i am not getting
Share this answer
Richard MacCutchan 25-Jan-12 13:37pm    
I that case you should write "0x" in front of every value that you print.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900