i get the following error when i try to create a new TreeNode
Code:
error C2514: 'TreeNode' : class has no constructors
Code:
treeObj->root = new TreeNode(oneline.c_str());
Code:
TreeNode<char> *treeNodeObj = NULL;
error C2514: 'TreeNode' : class has no constructors
treeObj->root = new TreeNode(oneline.c_str());
TreeNode<char> *treeNodeObj = NULL;
assign1 = searchTree(treeObj->root ,data1)->item;
assign = searchTree(treeObj->root
void handleOneLine(string string1) { char * cstr, *p; int counter; string str (string1); char data1, data2, data3; cstr = new char [str.size()+1]; strcpy (cstr, str.c_str()); // cstr now contains a c-string copy of str
void handleOneLine(string string1) { char * cstr, *p; int counter; string str (string1); string data1, data2, data3; cstr = new char [str.size()+1]; strcpy (cstr, str.c_str()); // cstr now contains a c-string copy of str int count = 0; p=strtok (cstr,","); count++;
searchTree(treeObj->root ,data1.c_str());
Tree<char> *treeObj = NULL; TreeNode<char> *treeNodeObj = NULL; TreeNode<char>* searchTree(TreeNode<char>
H H,E,L E,B,F B,A,C A,null,null c,null,D D,null,null F,null,G G,null,null L,J,M J,I,K I,null,null
H H,E,L E,B,F B,A,C A,null,null c,null,D D,null,null F,null,G G,null,null L,J,M J,I,K I,null,null K,null,null M,null,null
H,E,L E,B,F B,A,C A,null,null
Leave a comment: