========================================================================
CONSOLE APPLICATION : DesignPattern Project Overview
========================================================================
AppWizard has created this DesignPattern application for you.
This file contains a summary of what you will find in each of the files that
make up your DesignPattern application.
DesignPattern.vcproj
This is the main project file for VC++ projects generated using an Application Wizard.
It contains information about the version of Visual C++ that generated the file, and
information about the platforms, configurations, and project features selected with the
Application Wizard.
DesignPattern.cpp
This is the main application source file.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named DesignPattern.pch and a precompiled types file named StdAfx.obj.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" comments to indicate parts of the source code you
should add to or customize.
/////////////////////////////////////////////////////////////////////////////
没有合适的资源?快使用搜索试试~ 我知道了~
设计模式 创建型模式 Singleton模式(单键)
共35个文件
jpg:4个
obj:3个
cpp:3个
需积分: 13 19 下载量 88 浏览量
2012-12-18
20:04:23
上传
评论
收藏 1.72MB 7Z 举报
温馨提示
Singleton模式: 确保一个类只有唯一的一个实例。 Singleton主要用于对象的创建,这意味着,如果某个类采用了Singleton模式,则在这个类被创建后,它将有且仅有一个实例可供访问。很多时候我们都会需要Singleton模式,最常见的比如我们希望整个应用程序中只有一个连接数据库的Connection实例;又比如要求一个应用程序中只存在某个用户数据结构的唯一实例。我们都可以通过应用Singleton模式达到目的。 详细见博客 http://blog.csdn.net/xiaoting451292510/article/details/8285710
资源推荐
资源详情
资源评论
收起资源包目录
Singleton.7z (35个子文件)
DesignPattern
DesignPattern.vcproj.chenlulu-PC.chenlulu.user 1KB
Debug
DESIGNPATTERN_Singleton.obj 25KB
vc80.pdb 252KB
stdafx.obj 34KB
DesignPattern.obj 21KB
DesignPattern.exe.embed.manifest 406B
BuildLog.htm 12KB
DesignPattern.exe.embed.manifest.res 472B
mt.dep 67B
DesignPattern.exe.intermediate.manifest 388B
vc80.idb 227KB
DesignPattern.pch 6.44MB
stdafx.cpp 300B
ReadMe.txt 1KB
IncPathGroup.txt 60B
DesignPattern.vcproj 5KB
groupinc
stdafx.h 583B
MySelfDef.h 378B
CompOptProj.txt 22B
DesignPattern.cpp 565B
DesignPattern.sln 904B
Singleton
DESIGNPATTERN_Singleton.cpp 1KB
groupinc
DESIGNPATTERN_Singleton.h 1KB
reouce
Pattern_Singleton.jpg 23KB
DesignPattern.asta 31KB
Pattern_ComplexFactory.jpg 79KB
Pattern_SimpleFactory.jpg 58KB
Pattern_AbstractFactory.jpg 226KB
Pattern_AbstractFactory.jpg.bak 226KB
DesignPattern.asta.bak 31KB
DesignPattern.suo 36KB
debug
DesignPattern.pdb 531KB
DesignPattern.exe 48KB
DesignPattern.ilk 374KB
DesignPattern.ncb 1.09MB
共 35 条
- 1
资源评论
arvin_xiaoting
- 粉丝: 367
- 资源: 54
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功