scan.cpp

来自「This program about compilers.This is the」· C++ 代码 · 共 48 行

CPP
48
字号
// Scan.cpp: implementation of the Scan class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Scanner.h"
#include "Scan.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CScan::CScan()
{
}

CScan::~CScan()
{
}
void CScan::ReadLine(CString str)
{
}
BOOL CScan::GetChar(CString str,int index,char &curch)
{
	int length = str.GetLength();
	if(index >= length)
	{
		AfxMessageBox("字符访问越界");
		return FALSE;
	}
	else
	{
		curch = str.GetAt(index);
		return TRUE;
	}
}

void CScan::scan(CString str)
{

}

⌨️ 快捷键说明

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