摘要:
namespace ConsoleApplication11{ class Program { static void Main(string[] args) { int m1 = 31, m = 28, m2 = 31, m3 = 30, m4 = 31, m5 = 30, m6 = 31, m7 阅读全文
摘要:
namespace ConsoleApplication9{ class Program { static void Main(string[] args) { Console.Write("姓名:"); Console.ReadLine(); Console.WriteLine("成绩:"); d 阅读全文
摘要:
namespace ConsoleApplication8{ class Program { static void Main(string[] args) { Console.Write("请输入年份:"); int a = int.Parse(Console.ReadLine()); if (a 阅读全文
摘要:
namespace ConsoleApplication7{ class Program { static void Main(string[] args) { while (true) { Console.WriteLine("输入性别"); string s = Console.ReadLine 阅读全文
摘要:
namespace ConsoleApplication6{ class Program { static void Main(string[] args) { while (true) { Console.WriteLine("请输入整数a:"); int a = int.Parse(Consol 阅读全文
摘要:
namespace ConsoleApplication5{ class Program { static void Main(string[] args) { Console.Write("请输入时间"); int a = int.Parse(Console.ReadLine()); string 阅读全文
摘要:
namespace ConsoleApplication4{ class Program { static void Main(string[] args) { while (true) { Console.WriteLine("a的数字:"); int a = int.Parse(Console. 阅读全文
摘要:
namespace ConsoleApplication3{ class Program { static void Main(string[] args) { Console.WriteLine("请输入变量a的值:"); string a=Console.ReadLine(); Console. 阅读全文
摘要:
namespace ConsoleApplication1//命名空间{ class Program//类 { //主函数:程序的入口,一个程序有且只有一个入口 static void Main(string[] args) { /* //在Main函数中开始写程序 Console.Write("h 阅读全文
摘要:
int[] arr=new in[6];容器 foreach(var item in arr) foreach(int a in arr)//索引0位置遍历数数组至结束为止。 二维数组;多个一维数组就是二维数组 int[,]arr=new int[2,3];{{,}{,}} console.writ 阅读全文
摘要:
for(int i(定义变量)=0;i<length;i++) for(初始值;条件表达式;状态改变) { 循环体 } \n 换行 \t tab \\ 一个斜行 count 计数 thread 延时 thread.sleep(100) 休眠100毫秒 console.clear(); 清屏 阅读全文
摘要:
random r=new random(); int shu=r。next(3);非负数 阅读全文
摘要:
顺序;if()关系表达式 { 内容 语句 } else { } 条件 循环 跳转 if { } else{} if{}else if{}else{} 阅读全文
摘要:
值类型 { 简单类型 { 整形--(直接储存)有符号整形;sbyte,shorb,int,log无符号整形;byte,ushort,uint,ulog 浮点型 unicode 引用类型;存储一个数据快捷方式,存的引用 {类类型;class(用户自定义类型) 接口;interface 委托;deleg 阅读全文
摘要:
数据类型;数据在c#语法中的表达方式 定义变量;临时储存数据 运算符语句;顺序语句,分反条件(if else) 循环;(for) 跳转;(break ) 项目 解决方案 cs;源代码 using System.Text;调用名空间 namespace;命名空间 class;类 Program;主函数 阅读全文
摘要:
namespace ConsoleApplication17{ class Program { static void Main(string[] args) { Console.Write("请输入一个数"); int n = int.Parse(Console.ReadLine()); for 阅读全文
摘要:
namespace ConsoleApplication15{ class Program { static void Main(string[] args) { Console.Write("请输入"); int z = int.Parse(Console.ReadLine()); for (in 阅读全文
摘要:
namespace ConsoleApplication13{ class Program { static void Main(string[] args) { for (int i = 0; i < 3; i++) { Random r = new Random(); int s = r.Nex 阅读全文