Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct circle {
- float x,y,radius;
- void setRadius(float r){
- radius=r;
- }
- float getRadius(){
- return radius;
- }
- void setCentrX(float cx){
- x=cx;
- }
- float getCentrX(){
- return x;
- }
- void setCentrY(float cy){
- y=cy;
- }
- float getCentrY(){
- return y;
- }
- };
- int main{
- circle c1;
- c1.setRadius(5);
- cout<<getRadius()<< endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement