semantics.h

来自「一个采用面向对象实现编译解释器,自己验证过绝对能用.」· C头文件 代码 · 共 38 行

H
38
字号

#include <windows.h>
#include <wingdi.h>
extern HDC hDC;


#ifdef _BC_COMPILER
#include<graphics.h>
#include<conio.h>
#endif

#include"parser.h"

#define red RGB(255,0,0)
#define black RGB(0,0,0)

#ifdef _BC_COMPILER
#define white 255
#endif

//......外部函数声明
extern void DrawPixel(unsigned long x,unsigned long y);
extern double GetExprValue(struct ExprNode *root);
extern void DrawLoop(double Start,
					 double End,
					 double Step,
					 struct ExprNode *HorPtr,
					 struct ExprNode *VerPtr);
extern void DelExprTree(struct ExprNode *root);

#ifndef _BC_COMPILER
extern int InGraphMode;
extern int InitGraph(void);
extern void CloseGraph(void);
#endif

//#endif

⌨️ 快捷键说明

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