摘要:
<title>个人简历</title></head> <body background="1e30e924b899a9015b946ac41f950a7b0308f59a.jpg"> <table width="800" height="1300" border="1" cellpadding="0 阅读全文
摘要:
//struct jiegouti //{ // public string name; // public string kecheng; // public Fen fenshu; //} //struct Fen //{ // public double yufen; // public do 阅读全文
摘要:
public void Jia(int a ,int b) { a = a + b; Console.WriteLine(a); } public void Jia1(int a,out int b) { b = a + 5; } public int tao(int a) { int sum = 阅读全文
摘要:
{ Console.WriteLine("你好!"); } //函数类型 //第一种:无参无返 public void Leijia() { Console.Write("请输入一个正整数:"); int a = int.Parse(Console.ReadLine()); int sum = 0; 阅读全文
摘要:
//stack 干草堆 //先进后出 进 push 出 pop //初始化 //Stack ss = new Stack(); //ss.Push(1); //ss.Push(2); //ss.Push(3); //ss.Push(4); //ss.Push(5); ////Console.Writ 阅读全文
摘要:
//数组定义的时候 //需要定义数据类型 //需要定义初始长度 //int [] array = new int[5]; //int a = array.Length; //集合 //ArrayList al = new ArrayList();//初始化 //al.Add(3); //al.Add 阅读全文
摘要:
//一维数组 //数组初始化,创建数组,数组长度为5 //int [] array=new int[5]; //array[0] = 1; //array[1] = 2; //array[2] = 3; //array[3] = 4; //array[4] = 5; ////将2号索引位置改成7 / 阅读全文
摘要:
//String类 //字符串当中,索引号是从0开始的 ////长度length //string a = " Hello "; //int b = a.Length; //Console.WriteLine(b); //Console.Write(a); ////去掉字符串前后空格 //Conso 阅读全文
摘要:
for循环拥有两类:穷举: //循环可以解决的问题类型 //穷举,把所有可能的情况都走一遍,使用if条件筛选出来满足条件的情况。 //单位给发了一张150元购物卡, //拿着到超市买三类洗化用品。 //洗发水15元,香皂2元,牙刷5元。 //求刚好花完150元,有多少种买法, //每种买法都是各买几 阅读全文
摘要:
循环:反复执行某段代码。循环四要素:初始条件,循环条件,循环体,状态改变。for(初始条件;循环条件;状态改变){ 循环体}break ——中断循环,跳出循环continue——停止本次循环,进入下次循环 1.输入一个整数,计算从1加到这个数的结果int sum = 0;Console.WriteL 阅读全文