摘要:
class Program { public void dayin() { Console.WriteLine("hollo world"); } /// /// 累加求和 /// ... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace ConsoleApplication1{ class Pro... 阅读全文
摘要:
//集合ArrayList:跟数组比,不限数量,不限类型 ArrayList arr = new ArrayList(); arr.Add(5); arr.Add(7); arr.Add(... 阅读全文
摘要:
string[,] erwei=new string[10,10] { {"■","■","■","■","■","■","■","■","■","■"}, {"■"," "," "," "," ","■"... 阅读全文
摘要:
while (true) { //数组:一组同类型的数据,数组是有长度的,数组是有索引的,索引从0开始 int[] shuzu = new int[7];//定义了一个长度为6的int类型的数组 ... 阅读全文
摘要:
//输入10个人的分数,求最高分最低分平均分 int[] fenshu = new int[10]; int max = 0; int min = 0; int sum = 0; ... 阅读全文
摘要:
Console.WriteLine("请输入身份证号"); string s = Console.ReadLine(); string jqn = s.Substring(6, 4); string jqy = s.Substr... 阅读全文
摘要:
//一对幼兔,1个月后长成小兔, //再过一个月长成成兔并且生下一对幼兔, //问,24个月后,有多少对兔子。 while (true) { int m, ct, xt, yt, ... 阅读全文
摘要:
/异常语句 /* try { int a = int.Parse(Console.ReadLine()); } catch (Exception ex) ... 阅读全文
摘要:
int sum = 0; Console.Write("请输入数字:"); int shu = int.Parse(Console.ReadLine()); for (int i = 1; i <= shu; i++)//从1开始遍... 阅读全文