返回信息流template <class T>
class A{
public:
int N;
T data;
};
template<class T>
class B:public A<T>{
public:
void foo(){
N = 1;
}
};
int main(){}
Code::Blocks
\test.cpp||In member function `void B<T>::foo()':|
\test.cpp|17|error: `N' was not declared in this scope|
||=== Build finished: 1 errors, 0 warnings ===|
这是一条镜像帖。来源:北邮人论坛 / cpp / #39508同步于 2010/5/22
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
CompileError求解
Famine
2010/5/22镜像同步4 回复
订阅后,新回复会通过你的通知中心匿名送达。