-
关于猎人过河问题 要解决这个问题就要使过河时载两个过河,返回时尽量只有一个回来。用一个字符串数组来存猎人,狼,羊,白菜;下标依次为0,1,2,3;但他们都有河这...
关于猎人过河问题 要解决这个问题就要使过河时载两个过河,返回时尽量只有一个回来。用一个字符串数组来存猎人,狼,羊,白菜;下标依次为0,1,2,3;但他们都有河这边和那边两种状态;为方便则定义一个结构,只含一个int型变量n;当在河这边时n设为0;在河那边时n设为1。由于每次过河与返回都要考虑狼能否吃羊或羊能否吃白菜;则需要一个函数来判断每次选择是否满足条件。-Hunters across the river on the issues to resolve this issue so we should cross the river when the two set out across the river to return to when there is only one back as far as possible. Using a string array to keep hunters, the wolf, sheep, and cabbage subscript followed by 0,1,2,3 but they have a river here and there two states To facilitate the definition of a structure containing only an int variable n When in the river here when n is set to 0 in the river when n is set to one side. Due to cross the river and return each time to consider whether the wolf can eat the sheep吃羊or cabbage you need a function to determine each choose whether or not to meet the conditions.
- 2022-09-15 08:35:04下载
- 积分:1
-
这个是用C写的哈夫曼编码与解码,起中间数据还用文件显示,以便大家观摩...
这个是用C写的哈夫曼编码与解码,起中间数据还用文件显示,以便大家观摩-this is written in C Huffman coding and decoding, starting with intermediate data file, so that we watch
- 2023-08-13 07:15:02下载
- 积分:1
-
LBM的二维模拟空腔流
应用背景关键技术子程序collesion(U,V,F,信,Rho,欧米茄,W,CX,CY,n,m)真正的F(0:8,0:N,0米)真正的信(0:8,0:N,0米),ρ(0 N,0米)真正的W(0:8),CX(0:8),CY(0:8)真正的U(0 N,0米),V(0 N,0米)我= 0,N做J = 0,MT1 = U(i,j)×U(I,J)+ V(i,j)* V(I,J)做K = 0.8T2 = U(i,j)* CX(K)+ V(i,j)* CY(K)方程(K,I,J)=ρ(i,j)×W(k)*(1 + 3 + 4.50 * * T2 T2 t2-1.50 * T1)F(K,I,J)=ω*信(K,I,J)+(1。欧米茄)* F(K,I,J)结束做结束做结束做返回结束
- 2023-04-22 08:15:03下载
- 积分:1
-
Жордан шугаман тэгшитгэлийн систем
#包括;
- 2022-09-29 15:00:02下载
- 积分:1
-
二叉树的创建,预
二叉树的创建、前序递归遍历、中序递归遍历、后序递归遍历、层次遍历、前序非递归遍历、中序非递归遍历、后序非递归遍历算法。里面包含了顺序栈和队列的实现代码。-Binary tree creation, pre-order recursive traversal, recursive in order traversal, postorder recursive traversal, traverse the level, pre-order traversal non-recursive, in the non-recursive traversal sequence after sequence of non- recursive traversal algorithm. Which contains a sequence of stack and queue the realization of the code.
- 2023-07-03 07:40:02下载
- 积分:1
-
hotelreservationsystem
使用新泽西的标准ML生成用于酒店预订的命令行应用程序。
- 2023-04-05 01:30:03下载
- 积分:1
-
VC interrogation room monitoring software and removing the crew time, temperatur...
VC 审讯室监控软件,取下位机时间,温度,湿度,并显示-VC interrogation room monitoring software and removing the crew time, temperature, humidity, and show
- 2022-03-16 02:07:37下载
- 积分:1
-
实现了飞机游戏,也就是我们通常的在手机耍的飞机类射击游戏,对程序初学者可以好好研究下...
实现了飞机游戏,也就是我们通常的在手机耍的飞机类射击游戏,对程序初学者可以好好研究下-Game realize the plane, that is, at our usual type of plane of the mobile phone playing shooting games, the program can be a good study for beginners
- 2023-06-29 17:00:05下载
- 积分:1
-
brjtag v1.9o 源代码
Broadcom EJTAG Debrick 实用程序-由 hugebird创作
- 2022-02-06 19:31:11下载
- 积分:1
-
运动控制卡应用事例程序,对编程人员很方便。采用动态连接库方法...
运动控制卡应用事例程序,对编程人员很方便。采用动态连接库方法-Control card application software
- 2022-06-19 19:57:11下载
- 积分:1