摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PI { class Program { static void Main(string[] args) { const Doub... 阅读全文
posted @ 2016-04-29 21:35 Releed 阅读(570) 评论(0) 推荐(0) 编辑
摘要: 变量关系到数据的存储。 变量有不同的内涵,称之为类型 原因是:不同类型的数据需要用不同方法处理,变量限定为不同的类型,可以避免不必要的混淆。 要使用变量,需要声明它们,即给它们指定名称和类型。如果使用未声明的变量,代码将无法编译。 1.简单类型 就是组成应用程序中基本构件的类型,例如:数值和逻辑值( 阅读全文
posted @ 2016-04-03 18:36 Releed 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 利用#region 和#endregion 来定义展开和折叠的区域代码 其实以#开头的关键字都是一组预处理命令,严格的说并不是c#关键字,除了#region 和#endregion 之外,其他关键字都相当复杂,用法也比较专业。 阅读全文
posted @ 2016-04-03 18:08 Releed 阅读(746) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace ConsoleApplication1 7 { 8 class Program 9 { 10 static void Main(s... 阅读全文
posted @ 2016-04-03 18:02 Releed 阅读(149) 评论(0) 推荐(0) 编辑