cthread.h
来自「几种神经网络的源程序」· C头文件 代码 · 共 35 行
H
35 行
#ifndef CTHREAD_H#define CTHREAD_H#include "defines.h"#include "Exception.h"namespace annie {class TerminatedException : Exception {public: TerminatedException() : Exception("Terminated during waiting on event") {}};char getLastKeyPressed();char waitForKey();/// also initializes videovoid initControlThread(uint winW = 600, uint winH = 600);/** * nicely terminates CT * Must be called even if you don't want to terminate the thread prematurely */void goodbyeControlThread();///change the screen sizevoid changeWindowSize(uint winW, uint winH, bool wait=true);///redraw the screenvoid forceRedraw(bool wait=true);class Video;Video *getVideo();} //annie;#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?