#include <iostream>
#include <iomanip>

using namespace std;

class Box
{
public:
    int length, width, height;
    // Перегрузка постфиксной операции "++"
    Box operator++(int i){
        Box temp =*this;
        ++*this;
        return temp;
    }
    // Перегрузка постфиксной операции "--"
    Box operator--(int i){
        Box temp =*this;
        --*this;
        return temp;
    }

    // Перегрузка префиксной операции "++"
    Box &operator++(){
        length++;
        width++;
        height++;
        return *this;
    }

    // Перегрузка префиксной операции "--"
    Box &operator--(){
        length--;
        width--;
        height--;
        return *this;
    }

};


int main(int argc, char * argv[])
{
    Box b;

    b++; ++b; b--; --b;
    Box c;
    c = b;
    c = ++b;
    c = b++;
}
