定义一个结构体,其中的几个变量为long long类型
当时打印采取的是%ld,+参数,出来的结果竟然是奇数次结果正确,偶数次结果错误!!
无敌!!!
解决方法:
printf("%ld %ld %ld %ld %ld/n",(long)p0.c, (long)p0.c, (long)p0.c, (long)p0.c, (long)p0.c);
初步怀疑,跟我机子为32位架构,却采取64位数据的内存读取有问题!!
这个问题折腾了我一个下午,~~