摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 习题一 { class Program { //卖羊:一个人赶了一群羊,每过一个村庄卖掉这群羊的二分之一外加一只... 阅读全文
posted @ 2016-05-13 02:24 小飛 阅读(188) 评论(0) 推荐(0) 编辑
摘要: } } } 阅读全文
posted @ 2016-05-11 23:17 小飛 阅读(1844) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1函数 { class Program { //没有返回值,没有参数 ... 阅读全文
posted @ 2016-05-11 23:09 小飛 阅读(126) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using System.Threading.Tasks; namespace ConsoleApplication1特殊集合 { class Program ... 阅读全文
posted @ 2016-05-11 23:07 小飛 阅读(125) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Collections;//先引用 namespace ConsoleApplication2集合 { class Program ... 阅读全文
posted @ 2016-05-11 00:34 小飛 阅读(116) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(s... 阅读全文
posted @ 2016-05-11 00:31 小飛 阅读(166) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1数组 { class Program { static void Main... 阅读全文
posted @ 2016-05-09 02:05 小飛 阅读(145) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 { class Program { static void Main(s... 阅读全文
posted @ 2016-05-07 21:34 小飛 阅读(229) 评论(1) 推荐(0) 编辑
摘要: //猜拳 //三局两胜,电脑连赢两局,或者玩家连赢两局,2局结束 //电脑赢一局,玩家赢一局,3局 //平局,不知道几局才能结束了, //只要是电脑或是玩家赢了2局,那么就结束,否则继续 //break结束循环 //continue结束当前次循环,进入下一次循环 int count1 = 0; int count2 = 0; for (; ; ) { Console.Write("请输入您... 阅读全文
posted @ 2016-05-05 22:05 小飛 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 异常语句 阅读全文
posted @ 2016-05-05 21:54 小飛 阅读(215) 评论(0) 推荐(0) 编辑