main.cpp
资源名称:lp-scaner.rar [点击查看]
上传用户:jiashang
上传日期:2013-07-26
资源大小:12k
文件大小:1k
源码类别:
文本生成
开发平台:
Visual C++
- #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
- }
English
