Missing ';' before 'template<'
问题 I'm getting a strange error when I'm compiling my program: Error 1 error C2143: syntax error : missing ';' before ''template<'' I'm doing everything pretty standard; nothing out of the ordinary: #ifndef HEAP_H #define HEAP_H //************************************************************************** template<typename TYPE> class Heap { private: TYPE* heapData; int currSize; int capacity; void _siftUp(int); void _siftDown(int); int _leftChildOf(int) const; int _parentOf(int) const; public: