Advertisement
Guest User

Untitled

a guest
Nov 13th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <time.h>
  4. #include <string.h>
  5. typedef struct{
  6.  int id;
  7.  char imie[20];
  8.  char nazwisko[20];
  9.  int rok_u,mies_u,dzien_u;
  10. }tosoba;
  11.  
  12. int main()
  13. {
  14.     tosoba osoba;
  15.     int los;
  16.     srand(time(NULL));
  17.     los = rand()%101;
  18.     strcpy(osoba.imie, "imie" );
  19.  
  20.  
  21.     printf("%s", osoba.imie);
  22.  
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement