上一页 1 ··· 14 15 16 17 18
摘要: //1、一张150元购物卡,三类洗化用品,洗发水15元,香皂2元,牙刷5元 //求刚好花完150元,有多少种买法,每种买法各买几样? //洗发水 x 香皂 z 牙刷 y int count = 0; int bian = 0; for (int x = 0; x = 0 && a <= 100) { for (int i = 0; i <= a; ... 阅读全文
posted @ 2016-05-04 21:56 小飛 阅读(224) 评论(0) 推荐(0) 编辑
摘要: //打印数字,0,1,8,10,12,每一个数单独占一行 //在全部数字打印完毕之后在打印数字的个数和所有数的和 int count = 0; int sum = 0; for (int i = 0; i <= 12; i++){ switch (i) { case 0: Console.Write 阅读全文
posted @ 2016-05-04 00:05 小飛 阅读(3609) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ConsoleApplication1{ class P 阅读全文
posted @ 2016-05-02 22:49 小飛 阅读(217) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ConsoleApplication1{ class P 阅读全文
posted @ 2016-04-29 23:27 小飛 阅读(160) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ConsoleApplication1{ class P 阅读全文
posted @ 2016-04-28 23:08 小飛 阅读(230) 评论(0) 推荐(0) 编辑
摘要: //语句的分类 //语句顺序 //分支语句(选择语句) //循环语句 //分支语句 //if(表达式) //表达式返回值是True或False //int a = 113; //if (a <= 100) //{ // Console.WriteLine("您输入的数是小于等于100的。"); // 阅读全文
posted @ 2016-04-27 22:20 小飛 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 语言基础 C# 项目结构:项目后缀 config——配置文件(存放配置参数文件) csproj 项目文件(管理文件项) sln 解决方案文件(管理项目) cs 源文件(程序代码) 一、输入输出: Console.ReadLine();//输入语句 Console.WriteLine();//输出语句 阅读全文
posted @ 2016-04-26 20:52 小飛 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 进制转换 数制: 计算机中采用的是二进制,其运算简单、易实现可靠,又常用八、十六进制作为二进制的缩写。一般计数都采用进位计数。 二进制:逢二进一,借一当二 八进制:逢八进一,借一当八 十六进制:逢十六进一,借一当十六 数制转换 十进制:有10个基数:0 1 2 3 4 5 6 7 8 9 二进制:有 阅读全文
posted @ 2016-04-25 23:10 小飛 阅读(211) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18