试试这里的代码功能

时间:2014-08-24 14:09:52   收藏:0   阅读:240

他妈的。

气死我了

 

试试这里的代码功能如何。

 

#ifndef _PAGE_CLASS_
#define _PAGE_CLASS_

#include <string>
#include <vector>
using namespace std;

typedef struct
{
    string text;
}Display;

typedef void (*KeyAction)(void *); 

class page
{
      int code;
      Display display;
      vector<KeyAction> fun; 
      
      public:
      page();
      page(int index,Display something);
      ~page(); 
      
      void show(void);
};

#define UP    0
#define DOWN  1
#define RIGHT 2 
#define LEFT  3

#endif

// end of file ---------------------------------------

 

原文:http://www.cnblogs.com/xinxin19871118/p/3932727.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!