Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #define N 2
  4. #define K 4
  5. struct student {
  6.     char nazwisko[20];
  7.     int rok;
  8.     float srednia;
  9. };
  10. int s4(struct student s[]){
  11.     int i=0;
  12.     if(((s.oceny[i]+s.oceny[i+1])/2)>(s.oceny[i+2]+s.oceny[i+3])/2))
  13.     for(i=0;i<K;i++){
  14.        
  15.     }
  16. }
  17. void wczytajtab(struct student t[]){
  18.     int i;
  19.     for(i=0;i<N;i++){
  20.         wczytaj(&t[i]);
  21.     }
  22. }
  23. void wypisztab(struct student t[]){
  24.     int i;
  25.     for(i=0;i<N;i++){
  26.    
  27.     wypisz(&t[i]);
  28. }}
  29.  
  30. int main(){
  31.     struct student st[N];
  32.     wczytajtab(st);
  33.     wypisztab(st);
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement