I am trying to write a constructor in C++ (I am new).
My Attempt:
class Tree
{
    private:
        int leaf;
    public:
        Tree(int leaf); //constructor
};
Tree::Tree(int leaf) //constructor
{
strcpy(this->leaf, leaf);
}
Is this the proper way how to do it? Since I found many different version with srcpy, without , etc.
 
     
     
     
    