b***y 发帖数: 2799 | 1 ☆─────────────────────────────────────☆
noid (DoIneedit?) 于 (Mon Jun 23 12:42:28 2008) 提到:
The compiler gives an error for Stack::Link* p; The code is from Think from
C++.
error C2027: use of undefined type 'Stack
struct std::char_traits,class std::allocator > >'
Here is the code.
.h file
//: C16:TStack2.h
#ifndef TSTACK2_H
#define TSTACK2_H
template class Stack {
struct Link {
T* data;
Link* next;
Link(T* dat, L |
|