Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void input(circle *c);
- void output(circle *c);
- struct point
- {
- float x, y;
- };
- struct circle
- {
- point p;
- float rad;
- int color;
- };
- void input(circle *c)
- {
- cin >> c->p.x >> c->p.y >> c->rad >> c->color;
- }
- void output(circle *c)
- {
- cout << c->p.x << " " << c->p.y << " " << c->rad << " " << c->color;
- }
- int main()
- {
- circle C;
- input(&C);
- output(&C);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement