console.h
来自「一个自己写的游戏引擎,用DirectX 写成」· C头文件 代码 · 共 36 行
H
36 行
//--------------------------------------------------
// Desc: 控制台
// Date: 2007.1.26 /update
// Author: artsylee
//
// Copyright (C) 2007 artsylee
//
//--------------------------------------------------
#ifndef _CONSOLE_
#define _CONSOLE_
#include <windows.h>
#include <vector>
#include <fstream>
using namespace std;
class ASE_DLL CConsole
{
public:
CConsole();
virtual ~CConsole();
BOOL CreateConsole();
void Print(const char* text);
void Printf(const char* format, ...);
void Clear();
void Log(const char* format, ...);
void SaveToLogFile(const char* file = NULL);
void Close();
private:
vector<string> m_buffer;
};
#endif // _CONSOLE_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?