========================================================================
MICROSOFT FOUNDATION CLASS LIBRARY : 4
========================================================================
//**********************************************************************
//
//版权所有:软件学院0101班 陈亮
//
//2004.6.27
//
//
//
//**********************************************************************
AppWizard has created this 4 application for you. This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
make up your 4 application.
4.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
4.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CMy4App application class.
4.cpp
This is the main application source file that contains the application
class CMy4App.
4.rc
This is a listing of all of the Microsoft Windows resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
Visual C++.
4.clw
This file contains information used by ClassWizard to edit existing
classes or add new classes. ClassWizard also uses this file to store
information needed to create and edit message maps and dialog data
maps and to create prototype member functions.
res\4.ico
This is an icon file, which is used as the application's icon. This
icon is included by the main resource file 4.rc.
res\4.rc2
This file contains resources that are not edited by Microsoft
Visual C++. You should place all resources not editable by
the resource editor in this file.
/////////////////////////////////////////////////////////////////////////////
For the main frame window:
MainFrm.h, MainFrm.cpp
These files contain the frame class CMainFrame, which is derived from
CFrameWnd and controls all SDI frame features.
/////////////////////////////////////////////////////////////////////////////
AppWizard creates one document type and one view:
4Doc.h, 4Doc.cpp - the document
These files contain your CMy4Doc class. Edit these files to
add your special document data and to implement file saving and loading
(via CMy4Doc::Serialize).
4View.h, 4View.cpp - the view of the document
These files contain your CMy4View class.
CMy4View objects are used to view CMy4Doc objects.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named 4.pch and a precompiled types file named StdAfx.obj.
Resource.h
This is the standard header file, which defines new resource IDs.
Microsoft Visual C++ reads and updates this file.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
If your application uses MFC in a shared DLL, and your application is
in a language other than the operating system's current language, you
will need to copy the corresponding localized resources MFC42XXX.DLL
from the Microsoft Visual C++ CD-ROM onto the system or system32 directory,
and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation.
For example, MFC42DEU.DLL contains resources translated to German.) If you
don't do this, some of the UI elements of your application will remain in the
language of the operating system.
/////////////////////////////////////////////////////////////////////////////
没有合适的资源?快使用搜索试试~ 我知道了~
贪吃蛇游戏源码(VC++ 单文档程序)
共57个文件
h:9个
obj:8个
sbr:8个
5星 · 超过95%的资源 需积分: 9 22 下载量 201 浏览量
2010-07-14
23:15:25
上传
评论 1
收藏 7.39MB RAR 举报
温馨提示
好玩的贪吃蛇游戏,可以暂停,也可以用鼠标控制食物,还可以进行排名。本程序为本人在本科期间所做的VC++ 单文档程序,适合初学者参考。快捷键为:ESC键 退出ENTER/SPACEBAR/P键 暂停/恢复。
资源推荐
资源详情
资源评论
收起资源包目录
Snake.rar (57个子文件)
Snake
4.CPP 5KB
Release
StdAfx.obj 702B
4.obj 20KB
4.pch 6.83MB
4Doc.obj 8KB
NAME.obj 9KB
SNAKE.sbr 0B
4.res 5.06MB
DELAY.sbr 0B
vc60.idb 57KB
NAME.sbr 0B
4.exe 5.29MB
StdAfx.sbr 1.46MB
MainFrm.sbr 0B
4.sbr 0B
4Doc.sbr 0B
DELAY.obj 7KB
MainFrm.obj 15KB
4View.obj 36KB
SNAKE.obj 4KB
4View.sbr 0B
4.bsc 3.2MB
4View.aps 452B
4.DSW 525B
4Doc.cpp 2KB
4.DSP 5KB
4.CLW 2KB
4.H 1KB
RES
CURSOR2.CUR 326B
bkground.bmp 5.05MB
0.ICO 766B
4.ICO 766B
Snake.ico 318B
CURSOR1.CUR 326B
Thumbs.db 12KB
4Doc.ico 1KB
4.RC2 393B
NAME.H 1KB
4.OPT 60KB
4.APS 424KB
4.PLG 2KB
4.NCB 153KB
NAME.CPP 1KB
StdAfx.cpp 430B
MainFrm.cpp 4KB
4Doc.h 1KB
MainFrm.h 1KB
RESOURCE.H 1KB
StdAfx.h 1KB
4View.h 2KB
DELAY.H 1KB
4View.cpp 13KB
4.RC 8KB
SNAKE.H 776B
DELAY.CPP 1KB
SNAKE.CPP 3KB
ReadMe.txt 4KB
共 57 条
- 1
资源评论
- James_dw2014-04-03很好 能编译运行
- hanxfei2020-03-12可以编译运行,初学者很好的参考。
- chenlisheng002011-09-21非常好 非常不错 游戏入门教程
都市骑兵
- 粉丝: 0
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功