c++ 取一个字节的低4位和高4位

转载:https://blog.csdn.net/mikasoi/article/details/84311620

1 unsigned char low_four, high_four;
2 high_four = (byte & 0xf0) >> 4;
3 low_four = byte & 0x0f;
原文地址:https://www.cnblogs.com/Toya/p/13953967.html