using System;
namespace Application
{
class MainClass
{
public static void Main (string[] args)
{
string a = "aac";
switch (a) {
case "332":
Console.WriteLine ("5137");
break;
case "3223":
Console.WriteLine ("5173");
break;
case "2332":
Console.WriteLine ("51733");
break;
default:
Console.WriteLine ("21213");
break;
}
}
}
}
上述中为什么我执行后的样子是这样的?我用的是Monodevelop...

另外if else能不能取代switch语句??
namespace Application
{
class MainClass
{
public static void Main (string[] args)
{
string a = "aac";
switch (a) {
case "332":
Console.WriteLine ("5137");
break;
case "3223":
Console.WriteLine ("5173");
break;
case "2332":
Console.WriteLine ("51733");
break;
default:
Console.WriteLine ("21213");
break;
}
}
}
}
上述中为什么我执行后的样子是这样的?我用的是Monodevelop...

另外if else能不能取代switch语句??
