Overview: practice in design mode , written in c++ language
New features added: Factory mode
Description: the implementation of Factory mode in c++ language