C语言 goto error,求助 GOTO语句有的正确 有的却提示错误 怎么修改

已结贴√

问题点数:5 回复次数:9

ca56232b3bbedf9a539d07f37fffb99a.gif

3144d8b7615c79d9f638db40d5689d26.gif

a218af6549b45ee526caf607ebff1358.gif

0f8df0e29816ae721419de940fb833d1.gif

求助 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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值