program.cs

来自「c#开发宝典 光盘内容。本光盘主要为书中的源程序」· CS 代码 · 共 29 行

CS
29
字号
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace Example3_17 {
    class Program {
        static void Main(string[] args) {
            //定义程序中用到的数据。
            int a = 5;
            int b = 10;
            int c = 0;
            int d = 0;

            //跳转到AddLabel所指的语句继续执行。
            goto AddLabel;
            c = a + b;

            //已AddLabel标记的语句。
        AddLabel:
            d = c + b;

            //输出d的值。
            Console.WriteLine("The value of d is : {0}", d);
            Console.ReadLine();
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?