摘要: //数组! // int[] shuzu = new int[6] { 1, 2, 3, 4, 5, 6 };//索引是从0开始。[]内表示数组包含的数值 个数! // int i = shuzu[2];//此处2 表示数组shuzu的索引!这是引用数组的格式! /* int[] shuzu =... 阅读全文
posted @ 2014-10-20 16:53 安定祥和 阅读(261) 评论(0) 推荐(0) 编辑
摘要: //double d = double.Parse(Console.ReadLine()); //d = Math.PI;//圆周率 //d = Math.Sqrt(d);//开方 //d = Math.Ceiling(d);//当为整数取整,当小数点后大于0,取上限加1进位取整. //d = M... 阅读全文
posted @ 2014-10-20 13:45 安定祥和 阅读(235) 评论(0) 推荐(0) 编辑