#include "Register.h" Register::Register() : counter(0) {} Register& Register::operator++() { ++counter; return *this; } Register Register::operator++(int) { Register old = *this; ++(*this); return old; } std::string Register::operator*() { return "%" + std::to_string(counter); }