
15 Jan
2009
15 Jan
'09
12:14 p.m.
TaeKyeong Wang wrote:
C++ programmers want to input a constant of the binary form, like following. But, this is illegal in C++ world.
unsigned char value = 0b10001010;
There are some solutions of this lack. But, I can't find the gratifying answer.
This proposal has following features.
- whether digits is binary form - whether digits is octal or decimal of binary form - range of input octal or decimal number detection - output value is absolutely constant, no charge of resource (code, memory) at a run-time
Why not make it more generic and support any base?