Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- typedef struct listaelem {
- double x;
- double y;
- struct listaelem* kov;}
- listaelem;
- int elorebeszur (listaelem* head){
- double a,b;
- listaelem* ujelem;
- listaelem* p=head;
- scanf("%lf, %lf", &a, &b);
- if(ujelem!=NULL){
- head=ujelem;
- ujelem->x=a;
- ujelem->y=b;
- return 0;
- }
- else
- return 1;
- }
- int main(){
- listaelem* head;
- listaelem* vege;
- listaelem* start=head;
- int i;
- int j=0;
- int elemszam;
- head->kov=vege;
- for(i=0; i<elemszam; i++){
- elorebeszur (head);}
- for(start=head; start->kov->kov!=NULL; start=start->kov){
- printf("x=%l, y=%l\n", listaelem.x, listaelem.y);
- j++;}
- if (i==j)
- printf("SIKERULT!");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement