首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴哈哈哈儿的代码贴全部
void GetAround(int x, int y, Direction dirction = Direction.Null, int flag = 1)【一个void语句 括号里是定义 int的定义】
        {
            if (starsColor[x, y] == StarColor.White)
                return;
            if (dirction == Direction.Null)
            {
                list.Clear(); 【list调用clear()函数,(.代表调用)】
                list.Add(new StarInfo(x, y, starsColor[x, y], 1));【 new表示创建一个starinfo】 
                starsFlag[x, y] = 1;【= 表示赋值】
                if (x == 0 && y == 0)【== 表示判断是否相等】
                {
                    GetAround(x, y, Direction.Right);
......................
阅读全部 | 2016年12月24日 22:03
1
哈哈哈儿