⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.h

📁 用于计算一个很长的式子
💻 H
字号:
/************************main.h**********************/

#include<stdio.h>
#include<graphics.h>
#include<bios.h>

/**********************table.h************************/
#define LINE 32
#define COL  16
/*LINE表示表的行数*/
/*COL表示表的列数*/
int StartTop=0; /*整个表的左上定点的坐标*/
int StartLeft=0;/*整个表的左上定点的坐标*/
int StartLine=0;/*HexBuff从StartLine开始*/
int TblWidth=40;/*默认单元格的宽*/
int TblHeight=10;/*默认单元格的高*/
int TblLine=32; /*默认表的行数*/
int TblCol=16;  /*默认表的列数*/

struct TableClass
{
    /*这是一个表格属性的结构类型*/

    /*左上顶点的坐标*/
    int left;
    int top;
    /*右下顶点的坐标*/
    int right;
    int bottom;
    /*边框颜色*/
    int bdcolor;
    /*背景颜色*/
    int bkcolor;
    /*文本字体颜色0-15*/
    int fontcolor;
    /*字体大小*/
    int fontsize;
    /*文本指针*/
    char *text;

};
typedef struct TableClass TableClass;

void InitTable(TableClass **tbl,int left,int top,int line,int col,int width,int height);
void DisplayTable(TableClass **tbl,int line,int col);



/*********************End table.h*****************************/

/***********************graph.h*****************************/


struct FormClass
{
    int left;
    int top;
    int right;
    int bottom;
    int bkcolor;
};
typedef struct FormClass FormClass;

struct ButtonClass
{
    int left;
    int top;
    int right;
    int bottom;
    int charx;
    int chary;
    int forecolor;
    int fontcolor;
    int fontsize;
    char *caption;
};
typedef struct ButtonClass ButtonClass;

struct TitleBarClass
{
    int left;
    int top;
    int right;
    int bottom;
    char *caption;
};
typedef struct TitleBarClass TitleBarClass;


void MsgBox(char *messege);
void InitGraph(void);
void InitForm(FormClass *form);
void InitButton(ButtonClass *button,FormClass form);
void InitTitleBar(TitleBarClass *bar,FormClass form);
void DisplayForm(FormClass form);
void DisplayTitleBar(TitleBarClass titlebar);
void DisplayButton(ButtonClass btn);
void FillColor(int left,int top,int right,int bottom,int color);

/**********************End graph.h***************************/
#include"table.c"
#include"graph.c"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -