Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. void dodajstudenta(struct student* lista)
  2. {
  3. struct student* nowa = malloc(sizeof(st));
  4.  
  5. printf("\t Nazwisko: ");
  6. scanf("%s", &nowa->nazwisko);
  7.  
  8. printf("\t Imie: ");
  9. scanf("%s", &nowa->imie);
  10.  
  11. printf("\t Indeks: ");
  12. scanf("%d", &(nowa->indeks));
  13.  
  14. nowa->ocena = 0;
  15.  
  16. printf("\t Wiek: ");
  17. scanf("%d", &nowa->wiek);
  18.  
  19. dodaj(lista, nowa);
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement