VS2010及之后版本直接添加#include <stdint.h> ,2010之前的版本的安裝目錄下沒有stdint.h,可以在高版本VS中輸入 uint16_t 有點轉到定義,將定義部分復制到低版本VS中即可使用。
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;
