我尝试过:
#include <iostream> #include <stdint.h> int main(int argc,char* argv[]) { typedef __int16 int16_t; int16_t x=5; std::cout<<"Size of integer number= "<<sizeof(x)<<" Bytes\n"; system("pause"); return 0; }
这就是编译器配置的含义吗?
你不能,如果可以,你会破坏与你正在使用的每个库的兼容性,所以结果无论如何都不会起作用。
int16_t .
int16_t