C++. I am given a method in a class and I am not sure how todeclare it. What would be the correct way?
class myClass {
public:
//code
private:
//code
//class Data code
Node* bst_construct(vector<Data> &D, int left, intright);
};
in my main.cpp file I tried to declare it like so, but I get anerror of “unknown type name node”:
Node* myClass::bst_construct(vector<Data> &D, intleft, int right){
//code
};
Expert Answer
An answer will be send to you shortly. . . . .