using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
//流程控制 switch case
int age = 1;
switch (age)
{
case 1:
Console.WriteLine("1");
break; //没有这个语句无法编译通过
case 2:
Console.WriteLine("2");
break;
default:
Console.WriteLine("default");
break;
}
Console.ReadKey();
}
}
}
本文出自 “Kenan_ITBlog” 博客,请务必保留此出处http://soukenan.blog.51cto.com/5130995/1076216