亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

In C++, the problem of implementing inheritance polymorphism
某草草
某草草 2017-06-27 09:19:06
0
3
1432

In the header file, the inherited base class always reports an error when compiling: expected class-name before '{' token

某草草
某草草

reply all(3)
女神的閨蜜愛上我

I feel this has nothing to do with inheritance, it’s just that you wrote the code wrong

代言

It should be that your code is written wrong. You can post the code so that I can help you analyze it in detail

#ifndef MAN_H 
#define MAN_H 
#include "person.h"
class Man :public person
{
public:
    Man();
    void helpForOthers();
};

#endif//MAN_H

int main()
{
    return 0;
}

This should be fine

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template