摘要: 1 /********************************************** 2 状态机示例 3 功能:从屏幕输入1,则输出yes,输入其他值输出no 4 ***********************************************/ 5 #include 6 #include 7 8 /* 在各状态之间传递的消息*/ 9 typedef struct stateInfo 10 { 11 int message; 12 int nextStateID; 13 char result[12]; 14 }St... 阅读全文
posted @ 2013-10-17 23:47 范宇超 阅读(700) 评论(0) 推荐(0) 编辑