codeline.h

来自「a basic interpreter free basic」· C头文件 代码 · 共 33 行

H
33
字号
#pragma once
/*
 * Class CCodeLine - Class for a single line of code
 */
class CCodeLine
{
private:
	// Line number for the line of code
	unsigned int m_LineNumber;

	// Actual string value of the line of code
	string m_Code;

public:
	CCodeLine(void);
	// Construct with populated data
	CCodeLine(unsigned int Value, string Code);
	~CCodeLine(void);
	// Get the current line number
	unsigned int GetLineNumber(void);
	// Set the line number
	void SetLineNumber(unsigned int Value);
	// Get the line of code
	string GetCode(void);
	// Set the line of code
	void SetCode(string Code);

	// Static predicate for sorting (passed to list::sort)
	static bool Compare(const CCodeLine *lhs, const CCodeLine *rhs)
	{
		return lhs->m_LineNumber < rhs->m_LineNumber;
	}
};

⌨️ 快捷键说明

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