• 创建一个链表完成删除操作

    数据结构上机题template <class T> class ArrayList { public : ArrayList(const int size) { maxSize = size; arrayList = new T [maxSize]; curLen = 0; position = 0; } ~ArrayList() { delete [] arrayList; } void clear() { delete [] arrayList; curlen = 0; position = 0; arrayList = new T[maxSize]; }

    0
    176
    2KB
    2015-09-28
    15
  • 阅读者勋章

    授予在CSDN APP累计阅读博文达到7天的你,是你的坚持与努力,使你超越了昨天的自己。
  • 创作能手

    授予每个自然周发布1篇到3篇原创IT博文的用户
关注 私信
上传资源赚积分or赚钱