数据结构与算法—线性表.pptxVIP

  • 0
  • 0
  • 约3.63千字
  • 约 81页
  • 2023-09-23 发布于湖南
  • 举报
数据结构与算法 (C#语言版) Data Structure Algorithm in C#;Table of Contents;Table of Contents;2.0 Introduction;2.1 线性表的概念及类型定义;2.1.1 线性表的抽象数据类型;线性表的基本操作;线性表的基本操作(II);2.1.2 C#中的线性表类;ArrayList的公共属性;ArrayList的公共方法;ArrayList的公共方法(II);【例2.1】 创建并初始化 ArrayList 以及打印出其值;// Displays the properties and values of the ArrayList. Console.WriteLine( myAL ); Console.WriteLine( \tCount: {0}, myAL.Count ); Console.Write( \tValues: ); foreach(object o in myAL){ Console.Write( \t{0}, o); } Console.WriteLine(); myAL.Sort(); Console.Write( \tSorted Values: ); for(i

文档评论(0)

1亿VIP精品文档

相关文档