Variable declaration after goto Label

前端 未结 7 2261
我在风中等你
我在风中等你 2020-12-04 15:20

Today I found one interesting thing. I didn\'t know that one can\'t declare a variable after a goto label.

Compiling the following code

#include <         


        
7条回答
  •  被撕碎了的回忆
    2020-12-04 15:40

    Well, first you should be consistent. It's either LABEL or label. Second, label is a part of the statement and the declaration doesn't answer the description enough.

    You can replace LABEL: with label: ; and then it is likelier to compile.

    EDIT: Now that you edited your code all over, it should be JUMP: replaced with JUMP: ; ;-)

提交回复
热议问题