?? 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 + -