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

📄 program.cs

📁 有本书所有程序的源代码,包括聊天系统,马的遍历等问题
💻 CS
字号:
using System;

namespace KnightTourPlus
{
	class Program
	{
		static void Main( string[] args )
		{
			string StartX, StartY;
			int x = -1;
			int y = -1;
			do
			{
				Console.Write( "Input StartX(0-7):" );
				StartX = Console.ReadLine();
				try
				{
					x = int.Parse( StartX );
				}
				catch
				{
					x = -1;
					continue;
				}
			} while ( x < 0 || x > 7 );

			do
			{
				Console.Write( "Input StartY(0-7):" );
				StartY = Console.ReadLine();
				try
				{
					y = int.Parse( StartY );
				}
				catch
				{
					y = -1;
					continue;
				}
			} while ( y < 0 || y > 7 );
			SKKnightPlus skknightplus = new SKKnightPlus( x, y );
			skknightplus.StartSearch();
			Console.Read();
		}
	}
}

⌨️ 快捷键说明

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