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

📄 1.cpp

📁 des算法 实现文件加密速度比网上的快
💻 CPP
字号:
    
     ///////////////////////////////////////////////////////////
     //                一个简单的迷宫求解程序                 //
     //运行环境:WINDOW ,DOS.                                  //
     //时间:2006年4月16日------2006年4月21日                  //
     //算法设计:张明                                          //
     ///////////////////////////////////////////////////////////
#include"2.h"

//chess nodle[25][25];
ppchess nodle;
int i;
int j;
p_people head;
int c_size;
////////////////////////////////////////////////////////////////
/////////////////////主函数
void main()
{
	char contiue;
    do	///////////////////////////////////////////////////控制是否再来一次
	{
	    int over_c_size;
		cout<<"现在请你输入一个整数以确定棋盘大小(3-40)"<<endl;
	    do
		{
			over_c_size=OK;
			cin>>c_size;
			if(!(c_size>2&&c_size<41))
			{
				over_c_size=ERROR;
			    cout<<"对不起你输入的棋盘的大小不在(3-40)之间!!请你再输入一次!!"<<endl;
			}
		}while(over_c_size==ERROR);
		
		int level;
		cout<<"请你输入迷宫的难易级别(1,2,3)"<<endl;
		cin>>level;
		level=80-level*5;
			cout<<"请你稍等........"<<endl;
	    cout<<"正在生成地图............."<<endl;
		creat_map(level);
        system("cls");
	    cout<<"地图已经生成!!"<<endl;
	    show_map(0);
        cartoon_showmap(head);
	    cout<<"还要不要再来一次.(y/n)"<<endl;
	    cin>>contiue;
		if(contiue=='Y'||contiue=='y')
		{
			p_people p;
			while(head->next!=NULL)
			{
				p=head->next;
				head->next=p->next;
				delete p;
			}
			delete head;
		}
	}
	while(contiue=='Y'||contiue=='y');/////////////////控制是否再来一次
}









⌨️ 快捷键说明

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