文件名称:light
- 所属分类:
- C#编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2014-10-27
- 文件大小:
- 1.79mb
- 下载次数:
- 0次
- 提 供 者:
- yang*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
• 应用逻辑设计
1. 灯类
a. 主要属性和行为: 亮熄状态,关联图片资源对象,接受客户的亮熄要求
b. 类CLight
成员变量: m_state
成员函数: init, getState, setState
2. 开关类
a. 主要属性和行为: 关联所控的电灯CLight,接受客户的按动操作
b. 类CSwitch
成员变量: m_pLight
成员函数: init, push
3. 实例对象: 两个开关,一个灯;
操作过程:点击界面按钮,响应点击事件,调用开关的成员函数push,从而点亮或熄灭电灯
• 注意:上述的逻辑代码写在一个头文件中,使用内联式实现其成员函数,并提交。-• application logic design
1. Light class
A. the main attributes and behaviors: bright quenching condition, associated resource object images, accept the bright quenching requirements of our clients
B. class CLight
Member variables: m_state
A member function: init, getState, setState
2. Switch class
A. the main attributes and behaviors: correlation of the lights CLight, accept customer press operation
B. class CSwitch
Member variables: m_pLight
A member function: init, push
3. The instance objects: two switch, a lamp
Operation: click on the button, click event response, invoke the member function push switch, to light up or put out the light
. Note: the above logic code written in a header file, use inline type to achieve its member functions, and submit.
1. 灯类
a. 主要属性和行为: 亮熄状态,关联图片资源对象,接受客户的亮熄要求
b. 类CLight
成员变量: m_state
成员函数: init, getState, setState
2. 开关类
a. 主要属性和行为: 关联所控的电灯CLight,接受客户的按动操作
b. 类CSwitch
成员变量: m_pLight
成员函数: init, push
3. 实例对象: 两个开关,一个灯;
操作过程:点击界面按钮,响应点击事件,调用开关的成员函数push,从而点亮或熄灭电灯
• 注意:上述的逻辑代码写在一个头文件中,使用内联式实现其成员函数,并提交。-• application logic design
1. Light class
A. the main attributes and behaviors: bright quenching condition, associated resource object images, accept the bright quenching requirements of our clients
B. class CLight
Member variables: m_state
A member function: init, getState, setState
2. Switch class
A. the main attributes and behaviors: correlation of the lights CLight, accept customer press operation
B. class CSwitch
Member variables: m_pLight
A member function: init, push
3. The instance objects: two switch, a lamp
Operation: click on the button, click event response, invoke the member function push switch, to light up or put out the light
. Note: the above logic code written in a header file, use inline type to achieve its member functions, and submit.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
light\light.aps
.....\light.clw
.....\light.cpp
.....\light.dsp
.....\light.dsw
.....\light.h
.....\light.ncb
.....\light.opt
.....\light.plg
.....\light.rc
.....\Light1.cpp
.....\Light1.h
.....\lightDlg.cpp
.....\lightDlg.h
.....\ReadMe.txt
.....\resource.h
.....\StdAfx.cpp
.....\StdAfx.h
.....\Switch.cpp
.....\Switch.h
.....\~VC323.tmp
.....\res\icon1.ico
.....\...\icon2.ico
.....\...\light.ico
.....\...\light.rc2
.....\Debug\light.exe
.....\.....\light.ilk
.....\.....\light.obj
.....\.....\light.pch
.....\.....\light.pdb
.....\.....\light.res
.....\.....\Light1.obj
.....\.....\lightDlg.obj
.....\.....\StdAfx.obj
.....\.....\Switch.obj
.....\.....\vc60.idb
.....\.....\vc60.pdb
.....\res
.....\Debug
light