摘要: C++编程思想里的一个例子。先看代码:handle.hpp#ifndef HANDLE_H_ #define HANDLE_H_ class handle { struct cheshire; //这里通知编译器cheshire是个结构体,结构体的定义编辑器将在cpp中找到 cheshire* smile; public: void initialize(); void cleanup(); int read(); void change(int); }; #endif // HANDLE_H_handle.cpp#include <io... 阅读全文
posted @ 2012-10-18 13:51 林间走寸 阅读(340) 评论(0) 推荐(0)