Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<string.h>
  3.  
  4.  
  5.  
  6. struct Tanc{
  7. char ime[15];
  8. char zemja[15];
  9. };
  10.  
  11. struct Tancer{
  12. struct Tanc niza[5];
  13. char ime[20];
  14. char prezime[20];
  15. };
  16.  
  17. void tancuvanje(struct Tancer *t, int n, char *zemja){
  18. int i,j;
  19. for(i = 0; i < n; i++){
  20. for(j = 0; j < 5; j++){
  21. if(!(strcmp(t[i].niza[j].zemja,zemja))){
  22. printf("%s %s, %s\n",t[i].ime,t[i].prezime,t[i].niza[j].ime);
  23. break; }
  24. }
  25. }
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement