i don't know strcmp function. we didn't discuss it in our class. is there any way on how to search a node?
why? what will be the possible problem? i'm sorry, i'm just a beginner at c++ and i'm new at file manipulation. we didn't even try to do a simple program about file manip. T_T
i'm using dev-c++, that's what we're using in our school. it's just my habit, but we can also use using namespace std.
i don't know strcmp function. we didn't discuss it in our class.
I would have thought that you would have at least done C strings (null terminated array of char)
before something like linked lists.
How do they expect you to search this particular linked list for a particular node using the name value????
Strange.
But for the record try this:
#include <stdio.h> //include this
if(strcmp (temp->name, z) ==0)//change your test line to this and see if that helps