📄 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 + -