Bentley中有没有可以供调用的将数据转换为二进制的函数或者类呢?
#include <bitset>
float f = 5.5f; std::bitset<sizeof(float)*CHAR_BIT> foo(*reinterpret_cast<unsigned long*>(&f));
string bitResult = foo.to_string();