Errors appears foolish are factually a manifestation of unfamiliarity of knowledge
ds preview
linked list
1.Knowing the number of node n and use for loop to go through the linked list
Forget p=p->next t the end of each loop
2.forget the return value always
3.
tip:use strchr to judge if c is among some certain characters
char *strchr(const char *str, int c)
return the first location of c in str ,if there is no c in str,return NULL
example:
if (!strchr("0123456789.+-*/", tmp[0])) return Infinity;