Home » Community » Coffee corner » operation with ascii table character (Pascal x C++/U++)
Re: operation with ascii table character (Pascal x C++/U++) [message #56806 is a reply to message #56799] |
Sat, 17 April 2021 10:23   |
Oblivion
Messages: 1214 Registered: August 2007
|
Senior Contributor |
|
|
Hello BetoValle,
for(int i = 32; i < 128; ++i) {
Cout() << "\t0x" << FormatIntHex(i, 2)
<< "\t0x" << FormatIntHex(i + 1, 2)
<< "\t0x" << FormatIntHex(i ^ (i + 1), 2) << "\n";
}
// OR
Cout() << "\t-------------\n";
for(int i = 32; i < 128; ++i) {
Cout() << Format("\t0x%02x`\t0x%02x`\t0x%02x\n", i, i + 1, i ^ (i + 1));;
}
Something like this?
You can use text formatting and/or formatters, as you can see in the above example.
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Sat, 17 April 2021 10:27] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Jul 14 13:02:50 CEST 2025
Total time taken to generate the page: 0.03807 seconds
|