-
-
Save Rapptz/9a6273f5cab15fffa593 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <gears/io.hpp> | |
#include <iostream> | |
using namespace gears; | |
int main() { | |
int x[] = { 10, 11, 121, -12131, 129128 }; | |
io::print("{0,10}\t{1,10}\n", "Decimal", "Hexadecimal"); | |
for(auto&& i : x) { | |
io::print("{0,10}\t0x{0,-10:X}\n", i); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Decimal Hexadecimal | |
10 0xA | |
11 0xB | |
121 0x79 | |
-12131 0xFFFFD09D | |
129128 0x1F868 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment