rwhn.net
当前位置:首页 >> typEDEF signED ChAr INT8; 什么意思?求大神解答 ... >>

typEDEF signED ChAr INT8; 什么意思?求大神解答 ...

相当于把singed char 别名叫做INT8, 这样你在定义其他变量时比较方便, 比如INT8 A, 相当于signed char A;

这样写完后, mx_int8 a; 就被编译器认为是 signed char a; 也就是说,typedef的功能是 定义一个类型的别名

typedef unsigned char uint8_t; //无符号8位数 typedef signed char int8_t; //有符号8位数 typedef unsigned int uint16_t; //无符号16位数 typedef signed int int16_t; //有符号16位数 typedef unsigned long uint32_t; //无符号32位数 type...

STM32里的类型定义,见如下说明: /* Exported types ------------------------------------------------------------*/ typedef signed long s32; typedef signed short s16; typedef signed char s8; typedef signed long const sc32; /* Read...

网站首页 | 网站地图
All rights reserved Powered by www.rwhn.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com