currentstate.cs

来自「用广度优先搜索算法解决两个小孩的分油问题.盲目搜索算法.」· CS 代码 · 共 32 行

CS
32
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace FenYou
{
    public class CurrentState 
    {
        public int CA;
        public int CB7;
        public int CB3;
        public CurrentState Father;

        public CurrentState()
        {
            CA = 10;
            CB7 = 0;
            CB3 = 0;
            Father = null;
        }

        public CurrentState(int  ca, int cb7, int cb3, CurrentState father)
        {
            CA = ca;
            CB7 = cb7;
            CB3 = cb3;
            Father = father;
        }
    
    }
}

⌨️ 快捷键说明

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