#pragma once class CashInstance { public: float value; int availableAmount; void print(); CashInstance(float value, int availableAmount) : value(value), availableAmount(availableAmount){}; bool operator<(const CashInstance &other) const { return this->value < other.value; } bool operator>(const CashInstance &other) const { return this->value > other.value; } };