Hi, I am using NetBeans IDE 6.8 to create C++ project. While I use class inheritance, however, it seems to me that it does not recognize the derived class. Here is what I have:
class A
{
public:
A(vector<double> a, double b) {...}
};
class B : public A
{
public:
additionalfunction(...) {...}
};
main()
{
vector<double> c = something;
double d = 0;
B b=B(c, d);
}
And the compiler tells me that "B(c,d)" is not declared. I tried Eclipse C++, it told me the same thing. Why is that? Is it because both IDEs do not support C++ inheritance? What should I do?
Any reply is appreciated.