29th Apr 2017, 10:48 AM
Mayank Srivastava
Mayank Srivastava - avatar
2 Answers
+ 5
may I suggest a finite state machine? here is a tutorial on one such design I found using a search. I have yet to fully read the entire article. But there seems ample information there on the subject to get you going. https://www.codeproject.com/Articles/1087619/State-Machine-Design-in-Cplusplus
29th Apr 2017, 10:54 AM
jay
jay - avatar
+ 2
Thank You sir. I am sure this will help
29th Apr 2017, 10:56 AM
Mayank Srivastava
Mayank Srivastava - avatar