Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. /*
  2. #include <stdio.h>
  3.  
  4.  
  5.  
  6.  
  7. struct data{
  8.  
  9. int d;
  10. int m;
  11. int r;
  12. };
  13.  
  14. struct osoba{
  15.  
  16. char *nazwisko;
  17. char *imie;
  18. struct data umowa;
  19. char awans;
  20. struct osoba *osoba_po_lewej;
  21. struct osoba *osoba_po_prawej;
  22.  
  23. };
  24.  
  25.  
  26. /*
  27. void dialog(struct osoba *person)
  28. {
  29. struct osoba p;
  30. printf("podaj nazwisko \n");
  31. scanf("%s",&p.nazwisko);
  32. printf("Podaj imie \n" );
  33. scanf("%s",&p.imie);
  34. printf("Podaj date zawarcia umowy : \n");
  35. r scanf("%d", &p.umowa.d);
  36. scanf("%d",&p.umowa.m);
  37. scanf("%d",&p.umowa.r);
  38. printf("Czy byl awans ? Y/N \n");
  39. scanf("%c",&p.awans);
  40. person=&p;
  41. }
  42.  
  43. typedef struct el elListy;
  44. typedef elListy *lista;
  45.  
  46. void put(lista *k,char)
  47. int main()
  48. {
  49. /*
  50. struct data d={1,2,3};
  51. struct osoba ;
  52. */
  53. /* struct osoba *h;
  54. dialog(&h);
  55. //printf("%s\n",h.nazwisko);
  56. return 0;
  57.  
  58. }
  59. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement