Course Solutions Uncategorized (Solved) : C Given Method Class Sure Declare Would Correct Way Class Myclass Public Code Private Co Q26998072 . . . .

(Solved) : C Given Method Class Sure Declare Would Correct Way Class Myclass Public Code Private Co Q26998072 . . . .

 

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

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post