#include <iostream>
using namespace std;

struct circle {
	double Area, x,y; 
	circle& operator++ () {
        Area = Area * 2.0;
	    cout << "prefix"<<endl; 
        return *this; 
	}
	circle operator++ (int) {
		circle c(*this); 
        Area = Area * 2.0;
	    cout << "postfix"<<endl; 
        return c; 
	}
	void output() { cout <<Area<<" "<<x<<" "<<y<<endl; }
}; 


/////////////////////////////

int main()
{
class circle c1{4, 1, -1}, c2{12, 4, 6};
cout<<"Original: ";
c1.output();
cout<<"Postfix before: ";
(c1++).output();
cout<<"Postfix after: ";
c1.output(); 
cout<<"Prefix: ";
(++c1).output(); 

system("pause");
return 0;
}

