data1_buf [10] = {0x5A,0xA5,0x07,0x82,0x00,0x84,0x5A,0x01,0x00,0x47}; data2_buf [10] = {0x5A,0xA5,0x07,0x82,0x00,0x84,0x5A,0x01,0x00,0x51};//FLASH data3_buf [10] = {0x5A,0xA5,0x07,0x82,0x00,0x84,0x5A,0x01,0x00,0x47};//白屏 data4_buf [10] = {0x5A,0xA5,0x05,0x82,0x00,0xA0,0x00,0x7D,0x00,0x00};//蜂鸣器
时间: 2023-07-27 16:32:49 浏览: 166
ASM.rar_add buf1_buf2
这段代码中缺少了语句分号,应该在每一行语句的末尾加上分号。修改后的代码如下:
```
data1_buf [10] = {0x5A,0xA5,0x07,0x82,0x00,0x84,0x5A,0x01,0x00,0x47};
data2_buf [10] = {0x5A,0xA5,0x07,0x82,0x00,0x84,0x5A,0x01,0x00,0x51};//FLASH
data3_buf [10] = {0x5A,0xA5,0x07,0x82,0x00,0x84,0x5A,0x01,0x00,0x47};//白屏
data4_buf [10] = {0x5A,0xA5,0x05,0x82,0x00,0xA0,0x00,0x7D,0x00,0x00};//蜂鸣器
```
这样修改后,编译器就不会再提示类似于“error C141: syntax error near '{', expected 'sizeof'”这样的语法错误了。
阅读全文