32 lines
573 B
C#
32 lines
573 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace nQueen
|
|
{
|
|
/// <summary>
|
|
/// 表示位置信息的类
|
|
/// </summary>
|
|
class Position
|
|
{
|
|
int x;
|
|
int y;
|
|
public int X
|
|
{
|
|
get { return x; }
|
|
set { x = value; }
|
|
}
|
|
public int Y
|
|
{
|
|
get { return y; }
|
|
set { y = value; }
|
|
}
|
|
public Position(int i, int j)
|
|
{
|
|
X = i;
|
|
Y = j;
|
|
}
|
|
}
|
|
}
|