试试这里的代码功能

他妈的。

气死我了

 

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

 

#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 ---------------------------------------

 

posted @ 2014-08-24 13:37  辛昕  阅读(128)  评论(0编辑  收藏  举报