|
Re: Using a variable as a class object in Windriver/C++
Well, if you had an array of solenoid pointers for this, it'd just be something simple as having:
for(int solenoidPort = 0; 0 < 8; solenoidPort++){
solenoids[solenoidPort]->set(true);
}
__________________
Attending: MN Duluth Regional
|