So I have two string pointers in my class Node, key* and value*, and in my constructor I want to assign them the passed parameters key and value. Am I just being stupid here or what I cannot figure out how to do it.
Currently what I have
Here is the Node class which is a nested class for RBTree
Currently what I have
Code
RBTree::Node::Node(const string& key, const string& value)
{
key = key;
value = value;
}Code
class Node {
public:
Node(); // use this constructor to create the one nil Node
Node(const string& key, const string& value);
~Node();
Node *parent;
Node *left;
Node *right;
char color;
string *key;
string *value;
};![[Image: hfnmhEI.jpg]](https://i.imgur.com/hfnmhEI.jpg)

