C++ simulator done.