How to make this a proper state machine in c++
I have now this c++ code :
Is this a proper state machine and if not how can I improve it ?
@Rägnar
Is this a proper state machine and if not how can I improve it ?
@Rägnar
enum traffic_colors {
RED;
GREEN;
YELLOW;
}
enum traffic_light {
color: COLOR;
time : int
next_color: COLOR
}