07 2021 档案
摘要:首先应知道的类型转换规则 1.计算机采用补码形式存储数值,即内存里的二进制数据是所表示数的补码形式(!!!核心知识点) 2.整数的反码是本身,负数的反码是符号位不变,数据位按位取反 3.整数的补码是本身,负数的补码是反码+1 4.字面常量的类型转换,该字面常量会被当成unsigned 无符号类型对待
阅读全文
摘要:Clang has partial C++20 support that can be enabled with the option -std=c++20 (version 10 and later) or -std=c++2a (version 9 and earlier).[129] EDG
阅读全文