宗的博客

导航

2009年11月24日 #

C#流程控制

摘要: 1、布尔逻辑bool类型有两个值:true 和 false . 真 和 假布尔比较运算符也称为关系运算符[代码]2、goto 语句语法:goto <labername>例:int myInt = 6;goto myLaber;myInt += 10;myLaber:Console.WriteLine("myInt = {0}", myInt);3、三元运算符语法:<test>... 阅读全文

posted @ 2009-11-24 21:28 wrz 阅读(262) 评论(0) 推荐(0)