Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #define N 2
- #define K 4
- struct student {
- char nazwisko[20];
- int rok;
- float srednia;
- };
- int s4(struct student s[]){
- int i=0;
- if(((s.oceny[i]+s.oceny[i+1])/2)>(s.oceny[i+2]+s.oceny[i+3])/2))
- for(i=0;i<K;i++){
- }
- }
- void wczytajtab(struct student t[]){
- int i;
- for(i=0;i<N;i++){
- wczytaj(&t[i]);
- }
- }
- void wypisztab(struct student t[]){
- int i;
- for(i=0;i<N;i++){
- wypisz(&t[i]);
- }}
- int main(){
- struct student st[N];
- wczytajtab(st);
- wypisztab(st);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement