#include "widget.h" #include #include "loginit.h" #include "AbstractFactory/AbstractFactory.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); init_log(); /* 建造一艘旗舰战船 */ AbstractFactory* factory = new FactoryUltimate(); Ship* ship = factory->createShip(); ship->showShip(); delete ship; return a.exec(); }