#include <iostream>
using namespace std;
class Integer
{
private:
int first;
public:
Integer(){
first = 0;
}
Integer(int f){
first = f;
}
int getPrefix_(){
return --first;
}
int getPostfix_(){
return first--;
}
int getPostfixplus(){
return first++;
}
int getPrefixplus(){
return +first;
}
};
int main()
{
Integer t(10);
cout<<t.getPostfixplus()<<endl;
cout<<t.getPrefixplus()<<endl;
return 0;
}
Comments
Leave a comment