Posts
 
Reputation
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
~125 People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for kunlamp

[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 …

Member Avatar for kunlamp
0
125