文件名称:tanchishe
- 所属分类:
- 控制台(字符窗口)编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2013-05-10
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- 飞*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
一个简单的vc++控制台贪吃蛇程序。如vs2005及以上vs出现如warning C4996的警告: 1.在预编译头文件stdafx.h里(注意:一定要在没有include任何头文件之前)定义下面的宏:
#define _CRT_SECURE_NO_DEPRECATE
2.#param warning(disable:4996)
3.更改预处理定义:
项目->属性->配置属性->C/C++ -> 预处理器 -> 预处理器定义,增加_CRT_SECURE_NO_DEPRECATE
方-A simple the console vc++ Snake program. Such as the vs2005 and above vs appear as warning C4996 warning: precompiled header file stdafx.h (Note: Be sure to not include any header files) define the following macro: the# define _CRT_SECURE_NO_DEPRECATE 2# param warning ( disable: 4996) 3. changes preprocessor definition: Project-> Properties-> Configuration Properties-> the C/C++-> preprocessor-> preprocessor definitions, increase _CRT_SECURE_NO_DEPRECATE party
#define _CRT_SECURE_NO_DEPRECATE
2.#param warning(disable:4996)
3.更改预处理定义:
项目->属性->配置属性->C/C++ -> 预处理器 -> 预处理器定义,增加_CRT_SECURE_NO_DEPRECATE
方-A simple the console vc++ Snake program. Such as the vs2005 and above vs appear as warning C4996 warning: precompiled header file stdafx.h (Note: Be sure to not include any header files) define the following macro: the# define _CRT_SECURE_NO_DEPRECATE 2# param warning ( disable: 4996) 3. changes preprocessor definition: Project-> Properties-> Configuration Properties-> the C/C++-> preprocessor-> preprocessor definitions, increase _CRT_SECURE_NO_DEPRECATE party
(系统自动生成,下载前可以参看下载内容)
下载文件列表
stdafx.h
源.cpp