第六章_模板与数据结构(C++程序设计(第2版)吴乃陵).pptVIP

  • 3
  • 0
  • 约2万字
  • 约 72页
  • 2016-06-19 发布于江西
  • 举报

第六章_模板与数据结构(C++程序设计(第2版)吴乃陵).ppt

第六章_模板与数据结构(C程序设计(第2版)吴乃陵)

6.1 模板 6.1.2 类模板与线性表 6.1.2 类模板与线性表 6.1.2 类模板与线性表 【例6.3】顺序表类模板 6.2 排序与查找 6.2.1 常用查找方法 6.6.2 常用的排序法 【例6.6】升序直接插入排序算法 【例6.7】升序对半插入排序算法 【例6.8】冒泡排序算法 【例6.8】冒泡排序算法 学生类为数组元素 class student{ int id ; //学号 string name; // 姓名 char sex; // 性别 int age; // 年龄 string address; //家庭地址 float eng, phy, math, electron; //英语,物理,数学和电子学成绩 public: student(){} student(int,string,char,int,string,float,float,float,float); bool operator(student ele){ return idele.id; } void show(){ coutid\tname\tsex\t‘ age\taddress\teng\tphy\t‘ math\telectrone

文档评论(0)

1亿VIP精品文档

相关文档