⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test.cpp

📁 消除文法左递规算法的实现(此为可执行源代码)
💻 CPP
字号:
//实验三 消除产生式左递归
#include<iostream.h>
#include<fstream.h>
#include"subg.h"

void main()     //注解请见本目录下的实验报告......
{
	sub_G g;
	ifstream infile;
	ofstream outfile;
	infile.open("input.txt");
	if(!infile)
	{
		cout<<"Can not open input.txt"<<endl;
		return;
	}
	outfile.open("out.txt");
	if(!outfile)
	{
		cout<<"Can not open output.txt"<<endl;
		return;
	}
	g.read_G_from(infile);
	g.remove_leftDG();
	g.write_G_to(outfile);
	infile.close();
	outfile.close();
}

⌨️ 快捷键说明

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