正在加载图片...
待排序数据表的类定义 #include <iostream h> const int Defaultsize =100 template <class t> class element i /数据表元素定义 public C tkey 排序码 field otherdata 其他数据成员 Element<t>& operator=(Element<t>& xi key =x key; otherdata=x otherdata; return this待排序数据表的类定义 #include <iostream.h> const int DefaultSize = 100; template <class T> class Element { //数据表元素定义 public: T key; //排序码 field otherdata; //其他数据成员 Element<T>& operator = (Element<T>& x) { key = x.key; otherdata = x.otherdata; return this; } 5
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有