由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - inheritence problem
相关主题
C++ (with MATLAB engine) compiling problem under Linux systermA C++ compiler related interview question
两个看来相似的问题*** help needed! on MATLAB GUI ***
protected class member in C++How to tell gcc stop compiling.
类设计问题求助A tech question (转载)
请问C++小白问题An interesting C++ compile error
C++ Q96: function inheritance (转载)谁来解释一下这个是compiler问题吗?
Why oop is bad?关于Makefile的一个问题
C array这句话是为什么呢?
相关话题的讨论汇总
话题: class话题: problem话题: baseclass话题: error
进入Programming版参与讨论
1 (共1页)
r*****r
发帖数: 397
1
I have a strange compiling error, does anybody have this problem before?
There is a base class and an inherit class, very simple,
class BaseClass
{
...
}
class InheritedClass : public BaseClass
{...
}
when i compile,got the error
InheritedClass.h:11: error: expected class-name before ‘{’ token
r******p
发帖数: 9
2
;

【在 r*****r 的大作中提到】
: I have a strange compiling error, does anybody have this problem before?
: There is a base class and an inherit class, very simple,
: class BaseClass
: {
: ...
: }
: class InheritedClass : public BaseClass
: {...
: }
: when i compile,got the error

r*****r
发帖数: 397
3
could you be more detailed?

【在 r******p 的大作中提到】
: ;
N*********y
发帖数: 105
4
The OP made a most funny post I've ever seen here.
N***m
发帖数: 4460
5
I made the same mistake the first time I tried to compile a c++ code:)

【在 N*********y 的大作中提到】
: The OP made a most funny post I've ever seen here.
1 (共1页)
进入Programming版参与讨论
相关主题
这句话是为什么呢?请问C++小白问题
spent a lot of time try to compile boostC++ Q96: function inheritance (转载)
一个qt3在Windows上的问题Why oop is bad?
ambiguous operators in c++C array
C++ (with MATLAB engine) compiling problem under Linux systermA C++ compiler related interview question
两个看来相似的问题*** help needed! on MATLAB GUI ***
protected class member in C++How to tell gcc stop compiling.
类设计问题求助A tech question (转载)
相关话题的讨论汇总
话题: class话题: problem话题: baseclass话题: error