03 2015 档案

第九讲 C#练习题
摘要:1、接收一个整数N 如果N是正数就输出1·N如果是负数就提示出错输出由丰老师提供 -_-~2、编一个程序,从三个红球,五个白球,六个黑球中任意取出八个球,且其中必须有白球,输出所有可能的方案。3、编一个程序,楼梯有n阶阶梯,每次只能走一阶或者两阶,问,有多少种走法?以上由王珂老师提供。4、小超市10... 阅读全文

posted @ 2015-03-11 16:53 16932970 阅读(279) 评论(0) 推荐(0)

c#基础 第八讲
摘要:static void Main(string[] args) { while (true)//一直循环 { Random r = new Random();//创建随机函数r ... 阅读全文

posted @ 2015-03-07 13:50 16932970 阅读(146) 评论(0) 推荐(0)

c#基础 第六讲
摘要:烧开水先询问:“是否要烧开水(Y/N)”是的话执行--0°--100°(30°---水温了,50°---水热了,80°---水快开了,100°---水已经开了, 结束。)判断 循环 选择 跳转闹钟服务定义需要提醒的时间(2015-03-04 18:30)看新闻联播。。。。。获取当前时间,时间以分钟... 阅读全文

posted @ 2015-03-04 16:55 16932970 阅读(154) 评论(0) 推荐(0)

c#基础 第五讲
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication2{ class... 阅读全文

posted @ 2015-03-02 17:12 16932970 阅读(141) 评论(0) 推荐(0)

c#基础 第四讲
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication2{ class... 阅读全文

posted @ 2015-03-02 10:47 16932970 阅读(174) 评论(0) 推荐(0)

c#基础 第三讲
摘要:Random r = new Random(); string x, y; while (true) { int a = r.Next(0, 3); int b = r.Next(0, 3); switch (a) { case 0://剪刀 x = "剪刀"; break; ... 阅读全文

posted @ 2015-03-01 17:14 16932970 阅读(130) 评论(0) 推荐(0)

导航