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 <<endl;
break;
}
else
current = current->link;
}
}