Hello,
I have a project which involves basic implementations of linked lists, in C.
First though, I have to read the information from a file, which contains all different types(int, char, float) which is my problem...after i read the information into the nodes, it should be smooth sailing..
I was thinking something like...for example the first thing in the file is a name(string), but the next is an int...so I wasnt sure how to get the int after the first string.
while(fscanf("%s",temp.name) != EOF)
{
temp = CreateNode();
setData();
Insert();
}
:cheesy:
any suggestions with reading the information from the file ,and creating the linked list? thanks