为什么我的这个程序调试后没有错误,但运行结果显示什么也没有?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace practice4
{
class Program
{
static void Main(string[] args)
{
int a = 1, b = 2, c = 3;
int d,f,e;
d = (c++ + --a) * b;
f = Convert.ToInt16((d != 2) && true);
e = Convert.ToBoolean(f);
Console.WriteLine("表达式((((c++ + --a)!=2)&&true)的值为:{0}", e);

}
}
}

程序运行结束了,你没有让它暂停,添加Console.ReadKey();点击按键结束退出
温馨提示:答案为网友推荐,仅供参考
相似回答