Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- struct okrag {
- double x;
- double y;
- double r;
- };
- struct linia {
- double xp;
- double yp;
- double xk;
- double yk;
- };
- union typ {
- struct okrag o;
- struct linia l;
- };
- enum te { okrag, linia};
- struct figura {
- char kolor;
- float grubosc;
- union typ_fig fig;
- enum te selektor;
- };
- int main (void);
- struct figura f;
- f.kolor='c';
- f.grubosc=2;
- f.selektor = kolko;
- f.fig.o.x=7.0;
- f.fig.o.y=8.0;
- f.fig.o.r=9.0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement