标题:求助 GOTO语句有的正确 有的却提示错误 怎么修改
取消只看楼主
cncomor
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2011-12-22
结帖率:100%
已结贴  问题点数:5 回复次数:5 
求助 GOTO语句有的正确 有的却提示错误 怎么修改
        private void AA()
        {
        }

        protected override void OnKeyDown()
        {
            switch (kea.KeyCode)
            {
            case Keys.Escape:
                switch (Q)
                {
                case (int)M.H:
                    Q = (int)M.J;
                    break;
                case (int)M.J:
                    Q = (int)M.K;
                    break;
                case (int)M.K:
                    Q = (int)M.L;
                    break;
                case (int)M.L:
                    Q = (int)M.P;
                    goto default;
                case (int)M.P:
                case (int)M.U:
                    Q = (int)M.V;
                    goto default;
                case (int)M.V:
                    break;
                default:
                    Invalidate();
                    AA();
                    break;
                }
                break;
            case Keys.Enter:
                switch (Q)
                {
                case (int)M.V:
                case (int)M.P:
                case (int)M.U:
                default:
                    Invalidate();
                    AA();
                    break;
                }
                break;
            case Keys.Scroll:
                if (Q != (int)M.U)
                {
                }
                else
                    Q = (int)M.V;
                GOTO AA;提示错误
            case Keys.J:
                if (kea.Shift == false)
                {
                    if
                    {
                    }
                }else
                {
                    if
                    {
                    }
                }
                goto same;
            case Keys.K:
                if ()
                {
                    if
                    {
                    }
                }else
                {
                    if ()
                    {
                    }
                }
                goto same;
            case Keys.L:
                if ()
                {
                    if ()
                    {
                    }
                }else
                {
                    if ()
                    {
                    }
                }
                goto same;
            case Keys.OemSemicolon:
                if ()
                {
                    if ()
                    {
                    }
                }else
                {
                    if ()
                    {
                    }
                }
                goto same;
            case Keys.OemQuotes:
                if ()
                {
                }
                goto same;
            same:
                Q = (int)M.V;
                GOTO AA;提示错误
            case Keys.Left:
                switch (Q)
                {
                case (int)M.V:
                    GOTO AA;正确
                case (int)M.P:
                    switch ()
                    {
                    }
                    GOTO AA;正确
                case (int)M.U:
                    GOTO AA;正确
                case (int)M.L:
                    if ()
                    if ()
                    {
                    }
                AA:
                    Invalidate();
                    AA();
                    break;
                }
                break;
            case Keys.Right:
                switch (Q)
                {
                case (int)M.V:
                    GOTO AA;提示错误
                case (int)M.P:
                    switch ()
                    {
                    }
                    GOTO AA;提示错误
                case (int)M.U:
                    GOTO AA;提示错误
                case (int)M.L:
                    if ()
                    if ()
                    {
                    }
                    GOTO AA;提示错误
                }
                break;
            }
        }
        
        protected override void OnMouseDown()
        {
            if ()
            {
                for ()
                {
                    if ()
                    {
                    }
                }
                Invalidate();
                AA();
            }
错误提示
GOTO语句范围内没有AA这样的标签

[ 本帖最后由 cncomor 于 2011-12-22 17:00 编辑 ]
搜索更多相关主题的帖子: private 
2011-12-22 16:04
cncomor
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2011-12-22
得分:0 
这么多AA
怎么知道哪个是标签名
哪个是方法名呢
为什么同样AA有的正确
谢谢提示
2011-12-22 16:51
cncomor
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2011-12-22
得分:0 
用的VS2005
你是不是说换个软件呢
2011-12-22 17:03
cncomor
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2011-12-22
得分:0 
这个CS里GOTO很多
我曾尝试RETURN
结果又出现新错误提示
2011-12-22 17:04
cncomor
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2011-12-22
得分:0 
是个开源软件代码的修改
据作者称他是在别的系统上用别的软件做的程序
结果我还没修改就报错
真郁闷
2011-12-22 17:08
cncomor
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2011-12-22
得分:0 
有人在么
是不是AA的位置出了问题
据说是GOTO AA跨位置了
2011-12-22 19:16



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-358387-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.056243 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved