代码抒写人生,^_^
class Program
{
public static void Main(string[] args)
{
Program myLove = new Program();
//The foreStory:
int result = 1;
bool love = false;
if (love)
result = AtOneTime();
//But Now...:
if (args[0] == "has" && args[1] == "Third" && args[2] == "One")
{
love = false;
result = DoPart();
int herLife = LifeState.Nice;
int myHeart = myLove.GetNowHeartState(herLife);
Console.WriteLine(myHeart.ToString());
}
}
internal enum HeartState
{
Sad = 1,
MoreSad = 0
}
internal enum LifeState
{
Nice = 1,
Poor = 0
}
internal HeartState GetNowHeartState(LifeState girlLife)
{
if (girlLife == LifeState.Poor)
return HeartState.Sad;
else
return HeartState.MoreSad;
}
internal static int AtOneTime()
{
//1+1=2
return 1 + 1;
}
internal static int DoPart()
{
//2-1=1
return 2 - 1;
}
}
转载于:https://blog.51cto.com/qqy805/710356