作者:蜜小嘟_546 | 来源:互联网 | 2023-05-18 15:03
Ihaveanuint8_tarray:我有一个uint8_t数组:uint8_ttheArray[12]{0x00,0x01,0x00,0x00,0x00,0x06,0xFE
I have an uint8_t array:
我有一个uint8_t数组:
uint8_t theArray[12] = { 0x00,0x01,0x00,0x00,0x00,0x06,0xFE,0x03,0x01,0xC1,0x00,0x01 };
And I need the array that has 5 of those theArrays, but first value must change by one. 0x00, 0x01, 0x02 and so on. How can I build that array without rewriting theArray multiple times?
我需要一个有5个数组的数组,但是第一个值必须改变一个。0x00, 0x01, 0x02等等。我如何在不重写数组多次的情况下构建该数组?
1 个解决方案