VS2010及之后版本直接添加#include <stdint.h> ,2010之前的版本的安装目录下没有stdint.h,可以在高版本VS中输入 uint16_t 有点转到定义,将定义部分复制到低版本VS中即可使用。
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
1 typedef signed char int8_t; 2 typedef short int16_t; 3 typedef int int32_t; 4 typedef long long int64_t; 5 typedef unsigned char uint8_t; 6 typedef unsigned short uint16_t; 7 typedef unsigned int uint32_t; 8 typedef unsigned long long uint64_t;