📄 main.cpp
字号:
#include <iostream.h>
//#include <stdio.h>
//#include <stdlib.h>
#include "class1.h"
///////////////////////////////////////////////////////////////////////
void main()
{
cout<<" ++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
cout<<" 词法分析器"<<endl;
cout<<" ++++++++++++++++++++++++++++++++++++++++++++++++"<<endl;
///////////////////////////////////////////////////////////
char fileName[20];
ofstream outFile;
if( OpenFile(fileName)==true)
{ while (cch!=EOF)
{
GetNextWord();
cout<<endl;
}
}
else
cerr<<"文件不能打开!"<<endl;
// CloseFile(fileName);
//cout<<"程序已完成词法分析,分析结果已经存储在文件"<<"中!!!\n";//<<file_name
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -