- 论坛徽章:
- 0
|
请问在free bsd上用curses.h要链接哪个库?
我怎么又不会用引用了?
把代码贴一下,同时试一下code功能[code]/*------------------------------------------------------------------------------
curses foundation class
------------------------------------------------------------------------------*/
#ifndef CFC_H
#define CFC_H
#include <curses.h>;
#include <string.h>;
#define MAXCOMPONENT 50
#define MAXFORM 5000
#define LINELEN 80
#define EVENT_NULL 0
#define EVENT_CLOSE 1
typedef void (* Tevent_handle)(void);
class Tform;
class Tcomponent;
class Tapplication
{
private:
const Tevent_handle on_run;
const Tevent_handle on_close;
public:
int event;
int form_count;
Tform * forms[MAXFORM];
Tapplication(Tevent_handle, Tevent_handle);
void run();
};
class Tform
{
private:
const int height;
const int left;
const int top;
const int width;
const int have_border;
public:
Tapplication * const owner;
WINDOW * form_win;
int event;
int focus;
int component_count;
Tcomponent * components[MAXCOMPONENT];
Tform(Tapplication *, int, int, int, int,int,Tevent_handle,Tevent_handle);
void run();
void init();
void next();
void last();
const Tevent_handle on_run;
const Tevent_handle on_close;
};
class Tcomponent
{
private:
int focus_order;/*是 |
|