Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- #include <stdio.h>
- struct data{
- int d;
- int m;
- int r;
- };
- struct osoba{
- char *nazwisko;
- char *imie;
- struct data umowa;
- char awans;
- struct osoba *osoba_po_lewej;
- struct osoba *osoba_po_prawej;
- };
- /*
- void dialog(struct osoba *person)
- {
- struct osoba p;
- printf("podaj nazwisko \n");
- scanf("%s",&p.nazwisko);
- printf("Podaj imie \n" );
- scanf("%s",&p.imie);
- printf("Podaj date zawarcia umowy : \n");
- r scanf("%d", &p.umowa.d);
- scanf("%d",&p.umowa.m);
- scanf("%d",&p.umowa.r);
- printf("Czy byl awans ? Y/N \n");
- scanf("%c",&p.awans);
- person=&p;
- }
- typedef struct el elListy;
- typedef elListy *lista;
- void put(lista *k,char)
- int main()
- {
- /*
- struct data d={1,2,3};
- struct osoba ;
- */
- /* struct osoba *h;
- dialog(&h);
- //printf("%s\n",h.nazwisko);
- return 0;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement