gpt4 book ai didi

c++ - 无法解析类型 '',模板类型

转载 作者:行者123 更新时间:2023-11-28 02:07:22 24 4
gpt4 key购买 nike

<分区>

我对编程有点生疏,无法在网上找到解决方案。我正在创建一个模板类,在使用它时我似乎遇到了错误:

类型 'temp' 无法解析

我不得不尝试清理和重建,但没有帮助。任何建议表示赞赏。

  /*
* avlTREE.h
*
* Created on: May 1, 2016
* Author:
*/

#ifndef AVLTREE_H_
#define AVLTREE_H_
#include <cassert>
#include <functional>


class avlTreeException{};
class avlTreeExceptionInvalidInput : public avlTreeException{};

template <class temp>
class avlTREE{
public:
temp* ptr;
}
#endif /* AVLTREE_H_ */

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com