📄 common.h
字号:
#ifndef __COMMON.H__
#define __COMMON.H__
#include "KeyWord.h"
#include "SysFunc.h"
#include "State.h"
#include "Type.h"
#include "ErrorVal.h"
// 符号定义
const int TotSymbol = 13;
const char Symbol[TotSymbol] = "+-*/=><;,%()";
// Common.cpp包含的函数
void Receive(int &);
void Sound();
int VarValue_Int(const char []);
double VarValue_Real(const char []);
void VarValue_Str(const char [], char *);
double Expression(const char [], int &);
void GetPart(const char [], const int, const char, char *);
void GetMid(const char [],const int,const int, char *);
void GetBack(const char [], const int, const char, char *);
void ClearHeadBlank(char *);
void ClearTailBlank(char *);
void ClearBlankInside(char *);
VarType GetType(const char []);
VarArrayHeadType *GetArrayDim(const char []);
void Para(const char [], int *, int &);
int GetParaStr(const char [], const int, char *, int &);
int CalcPosition(const VarArrayHeadType *, const int *);
int LengthOf(const int);
int HeadOf(const int);
void NewLine();
void DelLine();
int NextLine(const int);
bool IsSymbol(const char);
bool IsSeparator(const char);
bool IsNumber(const char [], double &);
bool IsIndent(const int);
bool IsFileName(const char []);
void PrePaint(const int, char *);
void DealWordSign(char *, char *, char *);
// 外部调用的函数
extern void ClearLine();
extern void ShowError(const ErrorType, const int = -1, const char [] = "");
// 外部引用的变量
extern int EndLine;
extern bool Finished;
extern LineType *Text[MaxX];
extern VarAllType *HeadAll;
extern VarIntType *HeadInt;
extern VarRealType *HeadReal;
extern VarArrayHeadType *HeadArray;
extern ErrorType Error;
extern int RunLineNo;
extern int TotRoomLine;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -