cplusplus.com
C++ : Forum : Windows Programming : Text formating/alignment
 
cplusplus.com
Information
Documentation
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs


post Text formating/alignment

Null (735)
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 (735)
Anyone?
jsmith (5804)
Print it in hex?

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

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

Null (735)
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?
Topic archived. No new replies allowed.