use C++ to simulate a pipeline CPU (Computer Architecture Project)