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.
|