Hi, I am new to C++ and i've caught myself stuck on my first project.
I am trying to make a game that has 5 pumps which you can turn on or off. I seem to have hit a blank wall with what I need to do next. I have been coding for a few days so please point me in the right direction.
I am looking to make a simple menu where the user is able to turn the pump on or off manually and the user is able to view the state of each up (weather is it on or off)
I see enum is what I was looking for thank you. Also how am i able to let the user change the state of each pump? I have this so far but i'm not sure if it is right. Thanks for your help.
(the cout statements are not completed yet so please forgive the messiness of it.)
how am i able to let the user change the state of each pump?
Not sure if you've learned classes yet. Each pump should be an instance of a Pump class.
pumpState is a member variable of your Pump class. Your Pump class should have functions such as RemoveNozzle() (changes state from ready to pumping) and ReplaceNozzle() (returns state to standby), etc.