I would recommend looking at this answer regarding entering binary into C and C++, Can I use a binary literal in C or C++? .
Depending on your compiler/platform, gcc supports this: http://gcc.gnu.org/onlinedocs/gcc/Binary-constants.html
i = 42;
i = 0x2a;
i = 052;
i = 0b101010;
All are equivalent.
Alternatively, would it be possible to just store these into a binary file which you read in on startup?