static void Main(string[] args)
{
string job = "处长";//职务
switch (job)
{
case "局长" : Console.Write("发双黄月饼"); break;
case "处长" : Console.Write("发蛋黄月饼"); break;
case "科长" : Console.Write("发枣泥月饼");
default : Console.Write("发五仁月饼"); break;
}
}
科长后面忘了break;