If I have the following code which is a gas feed program:
Code:class throttle
{
public:
void shut_off();
double flow();
private:
int position;
};
How would I declare an instant or throttle called test? Would it be throttle.test?
Also I would want to activate the member function that shtus off test's flow, and then print out the current flow from test.
would it be?:
Code:throttle.test
void shut_off(test)
cout<< flow(test) //<---no idea about print out???
Your help would really be appreciated