哪里错了?
static void Main(string[] args)
{
string job = "处长";//职务
switch (job)
{
case "局长": Console.Write("发双黄月饼"); break;
case "处长": Console.Write("发蛋黄月饼"); break;
case "科长": Console.Write("发枣泥月饼"); break;
default: Console.Write("发五仁月饼"); break;
}
}
static void Main(string[] args)
{
string job = "处长";//职务
switch (job)
{
case "局长": Console.Write("发双黄月饼"); break;
case "处长": Console.Write("发蛋黄月饼"); break;
case "科长": Console.Write("发枣泥月饼"); break;
default: Console.Write("发五仁月饼"); break;
}
}
2020-04-09
举报