⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractfactory.cpp

📁 设计模式中抽象工厂(abstractfactory)算法实现
💻 CPP
字号:
// abstractfactory.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "factory.h"
#include "User.h"
#include <iostream>
using namespace std;


int _tmain(int argc, _TCHAR* argv[])
{
	User* pUser = NULL;
	IDePartment* pIdepartment = NULL;
	factory* pFactory = new Accessfactory;
	pUser = pFactory->createUser();
	pIdepartment = pFactory->createDepartment();
	pUser ->get();
	pUser->insert();
	pIdepartment->get();
	pIdepartment->insert();
	int ma;
	cin>>ma;
	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -