post  Text formating/alignment

Null (197)   Link to this post
Hi, I have to make text look like this:

00 FA FF 0A 3C 09
A0 DE AD FC 00 09
FA FF AC FB 10 0D
00 00 A1 F1 ED 00
...

Maybe someone can tell me where to start?
Null (197)   Link to this post
Anyone?
jsmith (3802)   Link to this post
Print it in hex?

Look up the following I/O manipulators on this site:

std::hex
std::setw
std::setfill

Null (197)   Link to this post
Yes! and no. I'm writing a GUI app so I'll put formatted text into text box and someone will try to edit and save... and crap everything up...
When editing hex there must be no way to delete spaces and this
FF 00 DB
can't become this:
FF A DB
and so on...
So where to start?

This topic is archived - New replies not allowed.