C++课件CHAP9.ppt
上传人:sy****28 上传时间:2024-09-12 格式:PPT 页数:37 大小:3.7MB 金币:16 举报 版权申诉
预览加载中,请您耐心等待几秒...

C++课件CHAP9.ppt

C++课件CHAP9.ppt

预览

免费试读已结束,剩余 27 页请下载文档后查看

16 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

第九章回顾目标intscore1;System.Console.ReadLine(score1)intscore2;System.Console.ReadLine(score2)intscore3;System.Console.ReadLine(score3)intscore4;System.Console.ReadLine(score4)intscore5;System.Console.ReadLine(score5)intscore6;System.Console.ReadLine(score6)intscore7;System.Console.ReadLine(score7)System.Array简介3-2System.Array简介3-3System.Array的属性和方法示例2-1示例2-2思考和演示System.Collections简介2-1System.Collections简介2-2ArrayList是一个可动态维护长度的集合ArrayList的初始化ArrayList添加元素访问ArrayList元素删除ArrayList的元素ArrayList的遍历常见错误1常见错误2publicstructStudent{publicStudent(stringname,intage){Name=name;Age=age;}publicstringName;publicintAge;}ArrayList通过索引获取对象什么是HashTable使用哈希表哈希表的遍历小结类型安全1类型安全2引入命名空间:System.Collections.GenericList<Student>students=newList<Student>();利用List<Student>存储班级集合什么是泛型集合使用泛型集合List<T>List<T>与ArrayListDictionary<K,V>概述Dictionary<K,V>的使用Dictionary<K,V>与哈希表泛型的重要性总结