.冒泡排序 Console.WriteLine("对集合里的数进行排序,请输入第一个数:"); int a = int.Parse(Console.ReadLine()); Console.WriteLine("对集合里的数进行排序,请输入第二个数:"); int b = int.Parse(Console.ReadLine()); Console.WriteLine("对集合里的数进行排序,请输入第三个数:"); int c = int.Par…
1.名片:用两种集合(ArrayList/List<>)去输出余下信息.身份证号码,电话号码,性别,姓名,身高,年龄,体重.需求:根据 姓名 去查询某一行数据.如果集合中不存在提示(“自定义提示 例:查无此人”):如果存在就输出该姓名对应的全部信息. 2. 冒泡排序:不限定集合类型 去实现冒泡排序 本系列教程: C#基础总结之八面向对象知识点总结-继承与多态-接口-http://www.cnblogs.com/spring_wang/p/6113531.html C#基础总结之七面向对象知识点…
class Card { private string name; public string Name { get { return name; } set { name = value; } } private string age; public string Age { get { return age; } set { age = value; } } private string sex; public string Sex { get { return sex; } set { s…
.DataTable 实现 DataTable PersonCard = new DataTable(); //创建一个DataTable DataTable PersonCardCopy = new DataTable(); PersonCard.Columns.Add("姓名"); //添加列 名称 PersonCard.Columns.Add("年龄"); //添加列 年龄 PersonCard.Columns.Add("性别"); //添…
.Hashtable 实现 Hashtable table = new Hashtable(); while (true) { Console.WriteLine("------------------1.增加--------------------"); Console.WriteLine("------------------2.查询--------------------"); Console.WriteLine("-----------------…
1.名片集: 名片集实现功能:不限定集合实现 增加,查询,查询全部,删除 功能,需求条件: 根据姓名去(查询/删除)某一行数据.指定:姓名,年龄,性别,爱好,联系方式. 采用技术:Hashtable-list<KeyValuePair>.或者 dictionary实现名片集. 本系列教程: C#基础总结之八面向对象知识点总结-继承与多态-接口-http://www.cnblogs.com/spring_wang/p/6113531.html C#基础总结之七面向对象知识点总结1http://w…
昨天讲解的JS是编程最最简单的一些基础知识,复习一下: JavaScript书写环境,<script>标签 1    <script type=”text/javascript”> 2    </script> alert()函数,至于什么是函数,先别管.alert弹出警告框 1    alert("你好"); 控制台F12,console就是用来检测程序有没有错误的 1    console.log("你好"); 我们已经知道了…
题目7-1,寻找最小值 1.实验代码: #include<stdio.h> int main() { int i,mark,min,n; scanf("%d", &n); scanf("%d", &mark); min=mark; ;i<n;i++){ scanf("%d",&mark); if(min>mark) min=mark; } printf("min=%d",min)…
class Bank { //Dictionary<long,Account> dictionary=new Dictionary<long,Account>(); DataTable table = new DataTable();//存储,储蓄账户集合 DataTable table1 = new DataTable();//存储信用账户集合 SavingAccount account = new SavingAccount();//储蓄账户类的实例化 CreditAccoun…
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ATM.Day02 { class Bank { public int index; ]; public Account account = new Account(); public CreditAccount credit = new Cred…