/in/foo.cc:42:17: error: 'NOde' has not been declared
void PostOrder(NOde*p)
^~~~
/in/foo.cc: In constructor 'BinTree::BinTree(const char*, const char*)':
/in/foo.cc:20:19: error: 'strlen' was not declared in this scope
int n=strlen(pre);
^
/in/foo.cc: In member function 'void BinTree::PostOrder()':
/in/foo.cc:40:17: error: no matching function for call to 'BinTree::PostOrder(Node*&)'
PostOrder(Root);
^
/in/foo.cc:38:7: note: candidate: void BinTree::PostOrder()
void PostOrder()
^~~~~~~~~
/in/foo.cc:38:7: note: candidate expects 0 arguments, 1 provided
/in/foo.cc:42:7: note: candidate: void BinTree::PostOrder(int*)
void PostOrder(NOde*p)
^~~~~~~~~
/in/foo.cc:42:7: note: no known conversion for argument 1 from 'Node*' to 'int*'
/in/foo.cc: In member function 'void BinTree::PostOrder(int*)':
/in/foo.cc:46:16: error: request for member 'lchild' in '* p', which is of non-class type 'int'
POstOrder(p->lchild);
^~~~~~
/in/foo.cc:46:22: error: 'POstOrder' was not declared in this scope
POstOrder(p->lchild);
^
/in/foo.cc:47:16: error: request for member 'rchild' in '* p', which is of non-class type 'int'
POstOrder(p->rchild);
^~~~~~
/in/foo.cc:48:12: error: request for member 'data' in '* p', which is of non-class type 'int'
cout<<p->data;
^~~~