... curinf = list_entry(cur,struct ptr, list[i]); curinf->score[i] -= sub; ... /*the definition of ptr*/ struct ptr { struct int *x; struct list_head head; struct list_head list[4]; int len; short weight; unsigned double score[4]; };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)