数据类型的构造函数初始值

mac2022-06-30  23

static void Main(string[] args) { Console.WriteLine("*********"); NewingDataTypes(); Console.ReadLine(); } private static void NewingDataTypes() { bool b = new bool(); int i = new int(); double d = new double(); DateTime dt = new DateTime(); Console.WriteLine("{0},{1},{2},{3}", b, i, d, dt); }

 

转载于:https://www.cnblogs.com/luckystar2013/archive/2013/04/27/3046399.html

最新回复(0)