有限状态机在C语言编程中的各类应用

1. 使用case的有限状态机cookie //使用switch/case或者if/else实现的基于状态机(FSM)的密码锁 //只有正确输入密码 2479 才能解锁 #include <stdio.h> #include <stdlib.h> #include <string.h> typedef enum{ STATE0 = 0, STATE1, S
相关文章
相关标签/搜索