-
shdom
fortran语言的球谐函数离散坐标法大气传输模型主程序,可用于大气场景生成(FORTRAN, spheric harmonic function of the discrete coordinate method main program, the atmospheric transmission model can be used for the atmospheric scene is generated)
- 2020-10-11 09:57:33下载
- 积分:1
-
作业
本题编写程序模拟人进行连连看游戏,电脑模拟人玩连连看的过程如下:
1、分析本局游戏,将本局游戏转化成一个二位数组。0表示空白区域,数字表示该游戏牌为出现在游戏中的第几类游戏牌。
2、利用广度优先搜索算法,判断两个游戏牌是否可以消除。
3、程序模拟人点击可以消除的一对游戏牌进行消除。
对某局游戏转化成二维数组如下:
0 0 0 0 0
0 1 2 0 0
0 0 3 4 0
0 0 0 1 0
输入二位数组的行、列,二位数组、起始元素的的坐标、终止元素的坐标,判断起始游戏牌和终止游戏牌是否可以消除。
对上例输入
4 5
0 0 0 0 0 0 1 2 0 0 0 0 3 4 0 0 0 0 1 0
1 1
3 3
输出 TRUE(The writing program simulates the game, and the computer simulates the process of watching the game as follows:
1. Analyze the game and convert the game into a two - bit array. 0 is the blank area, the number indicates that the game card is the number of game cards that appear in the game.
2. Use the breadth first search algorithm to judge whether the two game cards can be eliminated.
3, the program simulates a pair of game cards that can be eliminated by clicking.
A game of a game is transformed into a two-dimensional array as follows:
00000
01200
00340
00010
Input the row and column of the two bit array, the coordinates of two bit array, the initial element, and the coordinates of the termination elements, so as to determine whether the initial game card and the ending game card can be eliminated.
For example input
45
0000001200 0034000010
11
33
Output TRUE)
- 2017-12-17 16:01:15下载
- 积分:1
-
用黄金分割法求极值的c++程序
最优化里面的实验题目,让用黄金分割法球极值,这是代码
- 2023-03-29 19:35:04下载
- 积分:1
-
磁导引自动搬运小车程序
磁导引自动搬运小车程序,磁导航传感器进行位置纠偏,PWM驱动自动调速,可实现小车自主循迹前进、后退、加减速、直线转弯、避障报警,远程红外遥控等功能。
- 2022-01-26 02:58:21下载
- 积分:1
-
2
说明: 名为“打星星”的原创游戏小程序,假期计算机实习的小学期作业。(a game c++ program)
- 2012-02-10 17:26:21下载
- 积分:1
-
KjNdj1p06
超声波浓度计 采用混合信号处理芯片c8051f021与12864与485芯片同时输出4-20mA电流(Ultrasonic densitometer mixed signal processing chips c8051f021 and 12864 and 485 chips while the output 4-20mA current)
- 2015-05-06 03:08:29下载
- 积分:1
-
Test1
飞机大战游戏源代码,有部分注释,还有开始编写时的一些程序被注释掉了(It s a game of plane.)
- 2011-12-15 10:19:53下载
- 积分:1
-
CAN按键收发显示
说明: ?A、B两块开发板上电,按开发板A上的按键S1—S4,A板将通过CAN总线向B板发送按键数字信息,B板接收到该信息后通过数码管显示出A版相应的按键值。(A, B two development board power, press the development board A button s1-s4, A board will send key digital information through CAN bus to B board, B board received the information through the digital tube display A corresponding key value.)
- 2020-06-20 10:00:01下载
- 积分:1
-
activeMQ C++源码
activeMQ C++源码 ,C++写的源代码,网上找到的,分享给大家。
- 2022-09-14 21:05:04下载
- 积分:1
-
ucos-ii-transplanted-to-VC
将ucos-ii移植到vc++6.0上,包含ucos-ii源码和移植源代码(The ucos-ii transplanted to vc++ 6.0, contains ucos-ii Source and portable source code)
- 2020-07-13 09:18:52下载
- 积分:1