各位大神,
在STM32中结构体内部变量的引用看书上貌似是可以用“->”,但我写个程序发现居然要用“ . ”。用->直接出现语法错误。这是神马现象呢?各位大神!
感谢啊!代码如下:
struct bus_data{
unsigned int b0;
unsigned int b1;
unsigned int b2;
unsigned int b3;
unsigned int b4;
unsigned int b5;
unsigned int b6;
unsigned int b7;
};
struct bus_data sys_outdata;
sys_outdata.b0=1;
|