-
阶乘实例
输入n的值,用循环语句完成1!+2!+3!……+n!=s的实例。用c#实现。
- 2022-08-26 09:53:13下载
- 积分:1
-
SDI中的ListView应用示例
SDI中的ListView应用示例-the ListView SDI Application Example
- 2022-05-15 04:06:05下载
- 积分:1
-
打开主程序,在主程序界面里有这些字符: P I F D S Q H .这些字符分别代表:显示所有同学的记录 插入一个新同学的记录 查找同学(按姓名查找) 删除一...
打开主程序,在主程序界面里有这些字符: P I F D S Q H .这些字符分别代表:显示所有同学的记录 插入一个新同学的记录 查找同学(按姓名查找) 删除一个同学的记录. 保存记录 退出 帮助
也就是进入主程序,出现这些字符.按相应的键实现不同的功能.
注:按 Q键时,也就是帮助.则出现如下信息:
P:Preview all students information
I: Insert new student information
F:Find a student
D:Delete a student
S:Save a student
Q:quit
H:Help-open the main program, the main program interface there are these characters : P I D S F Q H. These characters represent : show all the records of students inserted a new record of the students find classmates (search by name) a student of the deleted records. record-keeping help from entering the main program is that these characters. by the corresponding key to achieve different functions. Note : Bond with Q, it is to help. appeared as follows : P : Preview all students information I : Insert new student information F : Find a student D : Delete a student S : Save a student Q : quit H : Help
- 2022-01-22 13:35:18下载
- 积分:1
-
迷宫追寻小游戏 C++MFC
应用背景
这个游戏为玩家控制红色方块,去吃掉棕色,绿色,蓝色的方块,一旦一个方块被吃,便会自动生成另一个相同颜色的方块。直到游戏时间结束为止。
程序函数功能:
ondraw函数:
显示游戏界面(用画刷刷成白色),显示地图(黑色),显示食物0,1,2(分别为:棕色,绿色,蓝色),显示玩家(红色)
显示文字,时间,分数。
OnEraseBkgnd函数:
用来更新窗口背景,游戏以位图为窗口背景。
OnGameStart函数:
关联窗口菜单中的开始游戏。包括:
IniGame();(初始化游戏)
m_nGameStatus=1;(游戏状态1,开始)
SetTimer(1,100,NULL);(定时器0.1秒执行一次OnTime)
Invalidate();(转向OnDraw)
IniGame函数:
初始化游戏,确定游戏显示位置,确定玩家初始位置,转向IniAim函数
IniAim函数:
初始化目标,这里的三个目标的位置为随机产生。
OnKeyDown函数:
监控设备按下的键,确定玩家移动方向。
ReDisPlay函数:
重画点所在的小方块。减少对Invalidate()的调用,使屏幕不太闪硕。
OmTimer函数:
完成时间的计算。
关键技术游戏中的人工智能:
棕色方块的移动算法为基本寻路算法—物体沿着墙走。
绿色方块的移动算法为基本的逃避算法—物体总会向玩家的反方向移动。
蓝色方块的移动算法为漫游算法—随机产生一个方向值,物体移动的方向不
- 2022-03-23 18:25:51下载
- 积分:1
-
通过本程序代码可以调节电脑屏幕的年度。希望对大家有用!...
通过本程序代码可以调节电脑屏幕的年度。希望对大家有用!-Through this program code can adjust the computer screen of the year. Hope useful for all of us!
- 2022-03-23 07:49:56下载
- 积分:1
-
internetwhitebrid
网际网
- 2022-10-31 01:10:03下载
- 积分:1
-
语法分析器 使用算符优先分析方法 可以输出 first集 last集 并对输入的字符串进行处理 判断是否输入合法...
语法分析器 使用算符优先分析方法 可以输出 first集 last集 并对输入的字符串进行处理 判断是否输入合法-Parser using the operator first set of analysis methods can be exported first and last set of input processing to determine whether the input string is valid
- 2022-08-05 20:37:39下载
- 积分:1
-
这是对人像识别的算法,由于小弟编程功力尚浅,所以要传上给大家,希望大虾能把它编写出来吧!^_^...
这是对人像识别的算法,由于小弟编程功力尚浅,所以要传上给大家,希望大虾能把它编写出来吧!^_^-This is the Face Recognition algorithms, programming skill, as a result of younger brother is so short that I want to give everyone Chuan, I hope it prepared shrimp can come out now! ^ _ ^
- 2022-10-17 00:10:04下载
- 积分:1
-
文件ST_CW_Ambg定义了模糊函数的表达式,以相对带宽B为参数。
2.文件MyFigure为运行文件,它调用ST_CW_Ambg中定义的函数作图。...
文件ST_CW_Ambg定义了模糊函数的表达式,以相对带宽B为参数。
2.文件MyFigure为运行文件,它调用ST_CW_Ambg中定义的函数作图。-ST_CW_Ambg document defines the ambiguity function of the expression to the relative bandwidth B for the parameters. 2. MyFigure running document files, it calls ST_CW_Ambg defined mapping function.
- 2023-04-25 12:10:03下载
- 积分:1
-
简易记事本
简要说明:
此软件为单窗口的简易记事本
Tnotepad.1.02.1 - 新增:
-------------------------------
1.自动保存上次窗体大小
- 2022-06-28 00:17:47下载
- 积分:1