后续ing#include<stdio.h>#include<stdlib.h>typedef struct NODE{ int x; struct NODE*nextptr;}node;node *headptr,*currentptr,*lastptr;int main(){ int num,max,min,sum; sum=0; headptr=NULL; scanf("%d",&num); max=num; min=num; while(num!=-1){ currentptr=(node*)malloc(sizeof(node)); if(currentptr!=NULL){ currentptr->x=num; sum=sum+num; if(num>max) max=num; else if(num<min) min=num; } if(headptr=NULL){ headptr=currentptr; } scanf("%d",&num); } printf("The maximum,minmum and the total are:%d %d %d",max,min,sum); return 0;}