int16 me_ccd_sign_0[128] = {0}; int16 me_ccd_sign_1[128] = {0}; int16 me_ccd_sign_2[128] = {0}; main() { int16 a = 128; while(a--) { me_ccd_clk_out(0); me_ccd_sign_0[127-a] = adc_once(me_ccd_sign,ADC_10bit); //10位精度 me_ccd_delay(1); } me_ccd_sign_2[128] = me_ccd_sign_1[128]; me_ccd_sign_1[128] = me_ccd_sign_0[128]; } 代码如上 为何在红字部分提示subscript out of range??? |
zhou1994 发表于 2015-3-6 20:03
me_ccd_sign_2[128] = me_ccd_sign_1[128];
me_ccd_sign_1[128] = me_ccd_sign_0[128];
这两句。你要把 ...
zhou1994 发表于 2015-3-6 20:03
me_ccd_sign_2[128] = me_ccd_sign_1[128];
me_ccd_sign_1[128] = me_ccd_sign_0[128];
这两句。你要把 ...
zhou1994 发表于 2015-3-6 20:28
me_ccd_sign_2[128] = me_ccd_sign_1[128];
me_ccd_sign_1[128] = me_ccd_sign_0[128];
你这明明是128啊 ...
zhou1994 发表于 2015-3-6 20:28
me_ccd_sign_2[128] = me_ccd_sign_1[128];
me_ccd_sign_1[128] = me_ccd_sign_0[128];
你这明明是128啊 ...
欢迎光临 智能车制作 (http://dns.znczz.com/) | Powered by Discuz! X3.2 |