Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #‎include‬ <stdio.h>
  2. #include <stdlib.h>
  3. #include <math.h>
  4.  
  5. typedef struct listaelem {
  6. double x;
  7. double y;
  8. struct listaelem* kov;}
  9. listaelem;
  10.  
  11. int elorebeszur (listaelem* head){
  12. double a,b;
  13. listaelem* ujelem;
  14. listaelem* p=head;
  15. scanf("%lf, %lf", &a, &b);
  16. if(ujelem!=NULL){
  17. head=ujelem;
  18. ujelem->x=a;
  19. ujelem->y=b;
  20. return 0;
  21. }
  22. else
  23. return 1;
  24. }
  25.  
  26. int main(){
  27. listaelem* head;
  28. listaelem* vege;
  29. listaelem* start=head;
  30. int i;
  31. int j=0;
  32. int elemszam;
  33. head->kov=vege;
  34. for(i=0; i<elemszam; i++){
  35. elorebeszur (head);}
  36. for(start=head; start->kov->kov!=NULL; start=start->kov){
  37. printf("x=%l, y=%l\n", listaelem.x, listaelem.y);
  38. j++;}
  39. if (i==j)
  40. printf("SIKERULT!");
  41. return 0;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement