Skip to content

Instantly share code, notes, and snippets.

@Rapptz

Rapptz/main.cpp Secret

Created June 16, 2014 00:35
Show Gist options
  • Save Rapptz/9a6273f5cab15fffa593 to your computer and use it in GitHub Desktop.
Save Rapptz/9a6273f5cab15fffa593 to your computer and use it in GitHub Desktop.
#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);
}
}
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