to determine if two two doubles are equal, we check to see if
their absolute difference is very close to zero. . .if two numbers
are less than .00001 apart, theyre equal.
keep a count field in each record (as you did in p5).
once the list is complete, ask the user to see if an element
is on the list--read her/his input from the keyboard.
here is what i got
code
#include "ll.h"
#include <stdio.h>
int main() {
int info;
lnode * head ;
head = getlist();
if (find(10, head)) fprintf("%d is on the list\n",10);
else fprintf("%d is not on the list\n",10);
if (find(178, head)) fprintf("%d is on the list\n",178);
printlist(head);
return 0;
}
also have a ll.h a makefile and a input file. but im just not understanding the program and how to start it.