main.cpp

来自「scan编译器得前端得扫描程序 属于便一起的一部分」· C++ 代码 · 共 20 行

CPP
20
字号
/**************************c_minus********************************/
/*         key   else if int return void while                   */
/*        sybol  + - * / < <= > >= == != = ; , ( ) [ ] { }       */
#include"scan.h"
int main()
{
	filetxt.open(filename);
	filetxt.get(let,51,EOF);
	strcpy(letline,let);
	filetxt.get(let,51,EOF);
	strcpy(letline+51,let);
	tokentype c=nexttoken();
	while(c!=ERROR)
	{
		cout<<c<<' ';
		c=nexttoken();
	}
	cout<<endl;
}

⌨️ 快捷键说明

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