Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
[code=cplusplus] #include<iostream.h> #include<malloc.h> #include<stdlib.h> struct point{ float x; float y; point *next; }; point * create(int count) { point *p,*h,*s; h=(point *)malloc(sizeof(struct point)); if(h==NULL) { cout<<"Malloc memory error"<<endl; } /********************************************Init head**********************************/ h->x=NULL; h->y=NULL; h->next=NULL; /********************************************Init head**********************************/ p=h; for(int i=0;i<count;i++) { s=(point *)malloc(sizeof(struct point)); if(s==NULL) { cout<<"Malloc memory error"<<endl; } cout<<"cin … |