error.cpp
来自「小型C语言编译器,VC条件下运行,最后编译为汇编代码」· C++ 代码 · 共 33 行
CPP
33 行
// error.cpp : implementation file
//
#include "stdafx.h"
#include "error.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CString _error::GetStrError()
{
CString ret = _T("");
switch( m_id ) {
case ERROR_INVALID_TYPE:
ret.Format( "error in line %d: invalid type '%s'", m_param, m_strComment );
break;
case ERROR_DECLARATION:
ret.Format( "error in line %d: '%s' is reserved", m_param, m_strComment );
break;
case ERROR_SEMICOLON_MISS:
ret.Format( "error in line %d: missing ';' after identifier \"%s\"", m_param, m_strComment );
break;
}
return ret;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?