-
关于猎人过河问题 要解决这个问题就要使过河时载两个过河,返回时尽量只有一个回来。用一个字符串数组来存猎人,狼,羊,白菜;下标依次为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
-
这个软件是配合2013的A/D口获得航模纵倾角度数:正负30度.
2013的A/D接到霍尔磁感应器上,磁块重力作用下垂摆动,使正负30度摆动引起霍尔送...
这个软件是配合2013的A/D口获得航模纵倾角度数:正负30度.
2013的A/D接到霍尔磁感应器上,磁块重力作用下垂摆动,使正负30度摆动引起霍尔送出0--4V电压,
经2013的A/D口采集后得到0---4000的数字,这个数字就是要经过着软件映射成正负30度,同时带图示.
纵倾角传感器的制作:
用CPU等类似的小风扇拆开,把霍尔线引出,并在风叶的一端安重块,转动正负30度各设阻挡.
只要重力作用下垂摆动,使正负30度摆动引起霍尔送出0--4V电压,就OK,对安装有要求的,
引线
VC5--12V,
霍尔送出0--4V电压,
地.
-This software is in line with 2013
- 2022-02-15 18:57:55下载
- 积分:1
-
zigbee采集温湿度程序
zigbee采集温湿度程序 用于采集温湿度再发到串口显示出来
- 2022-04-16 23:19:45下载
- 积分:1
-
makes a snowflake in opengl and glut functions
makes a snowflake in opengl and glut functions
- 2022-07-09 09:24:15下载
- 积分:1
-
用C++实现高斯
用C++实现高斯-亚当求解法求矩阵的逆
-finding the inverse matrix by Guess-Jordan using c++
- 2022-02-27 08:38:06下载
- 积分:1
-
本程序是用java编程,控制台程序的有关银行的计算accrua…
此程序是JAVA语言编写的,关于银行计算利息的控制台程序。再加工一下可以作为J2EE的一个JAVABEAN组件。非常有使用价值。-this program is programming by java, console program about bank computing accrual,can be used to javabean module of j2ee
- 2022-10-18 18:55:03下载
- 积分:1
-
Жордан шугаман тэгшитгэлийн систем
#包括;
- 2022-09-29 15:00:02下载
- 积分:1
-
线程的线程的线程的线程程序程序程序程序dsfg…
threading programm threading programm threading programm dsfg threading programm threading programm threading programm threading programm threading programm -threading programm threading programm threading programm threading programm dsfg threading programm threading programm threading programm threading programm threading programm threading programm threading programm threading programm threading programm threading programm
- 2022-08-06 03:41:46下载
- 积分:1
-
服务器目录索引工具源代码
资源描述基于XML技术的服务器目录索引工具
> 程序调用文件基于asp
- 2022-03-23 04:02:09下载
- 积分:1
-
曲线离散化算法,douglas_peucker算法。
曲线离散化算法实现,Douglas_Peucker算法。-Curve discretization algorithm, Douglas_Peucker algorithm.
- 2023-04-14 05:05:04下载
- 积分:1