⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 brain_dog.cpp

📁 很好的windows驱动开发书记,基于WDM的,,可以很好的学习
💻 CPP
字号:
#include "dog.h"

IE_START(Dog)

    GOAL (Nap)

#if 0
        IF (HearsNoise)	    GOTO (Investigate)

    GOAL (Investigate)
        IF (SeesHuman) 	    GOTO  (ConsiderAction)
        IF (Done) 	        GOTO  (Nap)

    GOAL (ConsiderAction)
        IF (LikesHuman)	    GOTO  (Follow)
        IF (WaryOfHuman)	GOTO  (RunAway)
        IF (HateHuman)	    GOTO  (Attack)

    GOAL (Follow)
        IF (Close) 	        GOSUB (Beg)
        IF (Tired)      	GOSUB (Rest
        IF (HumanGone) 	    GOTO  (GoHome)

    GOAL (Rest)
        IF (Done) 	        RETURN

    GOAL (Beg)
        IF (GetFood) 	    GOSUB (Eat)

    GOAL (Eat)

    GOAL (GoHome)
#endif

IE_END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -