本文作者原创,首发在本博客;CSDN 上的同名文章已标注为转载并回链到本页:https://blog.csdn.net/qq_30220519/article/details/141856008
测试
1 |
|
效果
enter On state
1
execute On state
2
switch off
exit On state
enter Off state
execute Off state
3
execute Off state
1
switch on
exit Off state
enter On state
execute On state
0
参考
https://github.com/Eryk-Mozdzen/state-machine-cpp
创作不易,小小的支持一下吧!

