///////////////////////////////////////////////
//hit-ncpire-6-14//////////////////
///////////////////////////////////////////////
#include<iostream>
#include<fstream>
#include<string>
#include<conio.h>
#include"myclass.h"
using namespace std;
void main()
{
cout<<"运行前请注意:"<<endl;
cout<<"1.本程序的输入文件必须符合attention.txt中的格式要求"<<endl;
cout<<"2.程序会寻找当前目录下的dd.txt文件作为输入文件"<<endl;
cout<<endl<<"按任意键开始执行...";
_getch();
syntaxG s;
s.stateEmerge();
s.tableConstruction();
s.printG();
}
此博客展示了一段C++代码,程序运行前需注意输入文件要符合attention.txt格式要求,且会寻找当前目录下的dd.txt文件作为输入文件。代码中定义了一个syntaxG类的对象s,并调用了其stateEmerge、tableConstruction和printG方法。
1万+

被折叠的 条评论
为什么被折叠?



