So when do you tie that new node to the end of the list?Code:else { std::cout << "The end of the list has been reached so the node will be added to the end." << std::endl; createNode(name); return;//causes method to end prematurally, which we want }