ljg-net 发表于 2014-4-20 19:28:47

怎样才能在构造函数中使用数组

只有0小灯亮,其他都不亮,看来是数组的问题,谁能告诉怎样才能在构造函数中使用数组

Super169 发表于 2014-4-20 20:38:58

void ledFlash::flash(){
for(int _i=0;_i<=3;_i++){
   digitalWrite(_array,HIGH);
   delay(500);
   digitalWrite(_array,LOW);
   delay(500);
}
} 當中的 _array[] 沒設定, 全都是預設值為 0.

bi7mpf 发表于 2014-4-21 11:54:25

int _array;
页: [1]
查看完整版本: 怎样才能在构造函数中使用数组