Cashier system written in C++