error

i have a syntax error with the NodePointer which is a typedef of a node*
i am clueless
it's reading it correctly in the parameter but the start of the function isn't
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class treeNode
	{
	public:
		keytype key; 		// key 
		datatype data;		// Data
		treeNode *left;		// left subtree	       
		treeNode *right;	// right subtree
	}; // end of class treeNode declaration

	typedef treeNode * NodePointer;
	NodePointer root;
/////////////////////////////////////////////

template <class keytype, class datatype>
NodePointer BinaryTree<keytype, datatype>::removeal(NodePointer aRoot, keytype keyx)
{

}
closed account (SECMoG1T)
it's reading it correctly in the parameter but the start of the function isn't 


what error exactly?
please provide some more code so we can test.
Last edited on
i found the error
so the NodePointer in the function name wasn't working because it can't be used as a type like int or struct
shifted the function to a void and referenced what i need
it was a syntax error
the compiler was asking for a semicolon after the NodePointer
Topic archived. No new replies allowed.