Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void list_add_lekarz(lekarz **first)
- {
- char tmp;
- lekarz *nowy=(lekarz *)malloc(sizeof(lekarz));
- printf("Imie:");
- scanf("%s", &nowy->imie);
- printf("nazwisko: ");
- scanf("%s", &nowy->nazwisko);
- printf("pesel: ");
- scanf("%s", &nowy->pesel);
- printf("adres: ");
- scanf("%s", &nowy->adres);
- printf("email: ");
- scanf("%s", &nowy->email);
- printf("telefon kontaktowy: ");
- scanf("%s", &nowy->telefon_kontaktowy);
- printf("specjalizacje (max 5): ");
- for(int i=0; i<5; i++)
- {
- scanf("%s", &nowy ->specjalizacje[i]);
- printf("dodac kolejna ? t n /n");
- scanf("%s", &tmp);
- if(tmp=='n')
- break;
- }
- nowy->next=*first;
- *first=nowy;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement