Questions tagged [n-ary-tree]
31 questions
-5
votes
1 answer
How to fix was not declared in this scope error
I write a code for printing and finding sum of the nodes in the n-ary tree but I get an error and I cannot fix it.
#include
#include
using namespace std;
class Node
{
public:
Node(int input)
{
this->data = input;
…
Alan turan
- 1
- 1
- 1