namespace _019_关于goto语句 {
class Program {
static void Main(string[] args)
{
int myInteger = 5;
goto mylabel;//goto语句用来控制程序跳转到某个标签的位置
myInteger ++;
mylabel:Console.WriteLine(myInteger);
Console.ReadKey();
}
}
}
namespace _019_关于goto语句 {
class Program {
static void Main(string[] args)
{
int myInteger = 5;
goto mylabel;//goto语句用来控制程序跳转到某个标签的位置
myInteger ++;
mylabel:Console.WriteLine(myInteger);
Console.ReadKey();
}
}
}
本文标题:019_关于goto语句。
本文链接:https://www.haomeiwen.com/subject/bevmcftx.html
网友评论