019_关于goto语句。

2018-03-30  本文已影响0人  立秋i

namespace _019_关于goto语句 {

    class Program {

        static void Main(string[] args)

        {

            int myInteger = 5;

            goto  mylabel;//goto语句用来控制程序跳转到某个标签的位置

            myInteger ++;

            mylabel:Console.WriteLine(myInteger);

            Console.ReadKey();

        }

    }

}

上一篇 下一篇

猜你喜欢

热点阅读