Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #define RozmiarTablicy 1000
- void add(struct struktura* dodaj);
- void rew(struct struktura* odwroc);
- struct struktura
- {
- int tab[RozmiarTablicy];
- int LiczbaElementow;
- int schowek[RozmiarTablicy];
- int LiczbaKopiowanych;
- }
- int main()
- {
- struct struktura lista;
- lista.LiczbaElementow = 0;
- lista.LiczbaKopiowanych = 0;
- add(&lista);
- int i = 0;
- for(i=0; i<lista.LiczbaElementow; i++)
- {
- printf("%d\n", lista.tab[i]);
- }
- printf(add);
- }
- void add(struct struktura* dodaj)
- {
- scanf("%d", dodaj->tab[LiczbaElementow]);
- dodaj->liczbaElementow++;
- }
- void rew(struct struktura* odwroc)
- {
- int a;
- int b;
- scanf("%d %d", a, b);
- for(a; i<a+(a-b)/2; i++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement