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

📄 codeline.h

📁 a basic interpreter free basic
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -