DesignPattern/23.TemplateMethodPattern/2.Code/main.cpp

19 lines
286 B
C++
Raw Normal View History

2019-11-10 02:50:30 +00:00
#include "FingerprintModule.h"
#include <Windows.h>
int main()
{
FingerprintModule *fp = new FingerprintModuleA();
fp->algorithm();
fp = new FingerprintModuleB();
fp->algorithm();
fp = new FingerprintModuleC();
fp->algorithm();
printf("\n\n");
system("pause");
return 0;
}