doubleformattest.cpp

来自「奇趣公司比较新的qt/emd版本」· C++ 代码 · 共 23 行

CPP
23
字号
/*LE: strings | grep 0123ABCD0123ABCDBE: strings | grep DCBA3210DCBA3210LE arm-swaped-dword-order: strings | grep ABCD0123ABCD0123BE arm-swaped-dword-order: strings | grep 3210DCBA3210DCBA (untested)tested on x86, arm-le (gp), aix*/// equals static char c [] = "0123ABCD0123ABCD\0\0\0\0\0\0\0"static  double d [] = { 710524581542275055616.0, 710524581542275055616.0};int main(){    // make sure the linker doesn't throw away the arrays    double *d2 = (double *) d;    return d[0] == d[1];}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?