由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] What is the inner class wrong
相关主题
A weird segmentation fault![合集] 谁给个stack-based allocation 的C++的例子?
array allocation in c请问C++ exception后如何清理function stack上的内存资源?
关于thread的stack3 c++ challenge-and-grill questions
how much slower: heap vs stack memory allocation?请教windows 7 怎么增加堆栈上限
static variable存在heap还是stack?为什么会有recursion stack overflow这个问题?
stack/heap corruptioneffective C++里的memory pool 一问:
问一个private destructor的问题why do we still use dynamic allocation?
请问一个关于 cost of pointer的问题为什么用try catch不住exception?
相关话题的讨论汇总
话题: link话题: class话题: stack话题: char话题: what
进入Programming版参与讨论
1 (共1页)
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
1 (共1页)
进入Programming版参与讨论
相关主题
为什么用try catch不住exception?static variable存在heap还是stack?
Help C++ Template function link error .stack/heap corruption
global variable usage question in C++问一个private destructor的问题
关于内存泄漏请问一个关于 cost of pointer的问题
A weird segmentation fault![合集] 谁给个stack-based allocation 的C++的例子?
array allocation in c请问C++ exception后如何清理function stack上的内存资源?
关于thread的stack3 c++ challenge-and-grill questions
how much slower: heap vs stack memory allocation?请教windows 7 怎么增加堆栈上限
相关话题的讨论汇总
话题: link话题: class话题: stack话题: char话题: what