No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
i got it success but error and i cant find it my code here: bool BinarySearchTree::search(int d) { tree_node *t = head; if(root==NULL) cout<<" The Tree is empty. Please insert a value "<<endl; while (t != NULL) { if (t->data == d) break; else if (d > t->data) t = … |
|
i cannot delete the lastest data i input, why. it show ".exe has stoppped working" void system1::deletenode(const string& id,const string& name) { string data; // User enters node to be deleted. nodetype * current = head; // Start at the head, and checks each node. nodetype * garbage = current; … |
|
and i get error with error C2451: conditional expression of type 'std::basic_string<_Elem,_Traits,_Ax>' is illegal void system1::search() { cout<<"Enter ID to be Searched: "; int data_search; cin>>data_search; nodetype *current = head; while(current != NULL) { if(current->ID == data_search) { cout<<"\n----Linked List Linear Search Result----\n"; cout<<"ID: "<< current->ID <<endl; cout<<"Name: "<< current->NAME … |