![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
喵喵不爱吃鱼
这个作者很懒,什么都没留下…
展开
-
for(char i = 0; i < 256; ++i) { printf(“%d\n“, i); } 输出是什么
有(无)符号char型及其溢出问题问题原因 问题 for(char i = 0; i < 256; ++i) { printf("%d\n", i); } 输出为: 0 1 2 … 127 -128 -127 … -1 0 1… 原因 char为1个字节,8位,第1位为符号位,最大为2^7-1 = 127,超过127后,溢出。 127+1 0…0 0111 1111 -> 1…1 1000 0000,即-128 128+1 1…1 1000 0000 -> 1…1 1000 0001,即-原创 2021-03-31 16:16:26 · 1302 阅读 · 0 评论 -
无法解析的外部符号 LZ4_setStreamDecode
无法解析的外部符号 LZ4_setStreamDecode问题表现解决方法 问题表现 VS2013,使用pcl/kdtree/kdtree_flann.h文件,报错: 无法解析的外部符号 LZ4_resetStreamHC 无法解析的外部符号 LZ4_setStreamDecode 无法解析的外部符号 LZ4_decompress_safe_continue 无法解析的外部符号 LZ4_decompress_safe 无法解析的外部符号 LZ4_compress_HC_continue 解决方法 添加fla原创 2021-03-25 11:32:54 · 1029 阅读 · 2 评论