<分区>
我对编程有点生疏,无法在网上找到解决方案。 我正在创建一个模板类,在使用它时我似乎遇到了错误:
类型 '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_ */