随笔分类 -  C++

摘要:#include #include #include #include typedef std::function Func; class Observer { public: void AddObserver(Func func) { m_vecFuncs.push_back(func); } void Notify(int i) { std::for_each(... 阅读全文
posted @ 2016-07-03 17:17 20118281131 阅读(316) 评论(0) 推荐(0)
摘要:project(Viewer) cmake_minimum_required(VERSION 2.8) aux_source_directory(. SRC_LIST) add_executable(${PROJECT_NAME} ${SRC_LIST}) target_link_libraries(${PROJECT_NAME} Misc.g++-3 Threads.g++-3 USB.g++... 阅读全文
posted @ 2016-06-15 07:42 20118281131 阅读(332) 评论(0) 推荐(0)
摘要:#ifndef MY_FRAME__HH__#define MY_FRAME__HH__#include struct IDirect3D9; struct IDirect3DDevice9; class QD3DWidget : public QWidget { Q_OBJECT pub... 阅读全文
posted @ 2014-07-24 16:35 20118281131 阅读(454) 评论(0) 推荐(0)