zoukankan      html  css  js  c++  java
  • goto

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    namespace ConsoleApplication1
    {
        class Program
        {
            static void Main(string[] args)
            {
                string strIntValue = Console.ReadLine();
                
                compute:
                    if (strIntValue.ToUpper() == "CLS")
                    {
                        Console.Clear();
                    }
                    else
                    {
                        Console.WriteLine(CommonUtility.ConvertToSmallIntValue(strIntValue));
                        Console.WriteLine();
                    }
                
                strIntValue = Console.ReadLine();
                goto compute;
            }
        }
    }
  • 相关阅读:
    vim操作
    git命令
    Python笔记(二)
    python笔记
    gdb笔记 ---《Linux.C编程一站式学习》
    python笔记——dict和set
    echo $?
    FastDFS与Nginx环境配置
    Nginx依赖库安装
    mixin多继承包装过程
  • 原文地址:https://www.cnblogs.com/zhangpengshou/p/2342110.html
Copyright © 2011-2022 走看看