Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class MyInt
- {
- int i, j;
- public:
- MyInt() {
- cin >> i >> j;
- }
- void print_i_j() {
- cout << i << endl;
- cout << j << endl;
- }
- void operator ++ (int)
- {
- if (this->i == this->j)
- cout << "yes";
- else
- cout << "no";
- }
- };
- int main()
- {
- MyInt I;
- cout << "================" << endl;
- I++;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement