-
关于猎人过河问题 要解决这个问题就要使过河时载两个过河,返回时尽量只有一个回来。用一个字符串数组来存猎人,狼,羊,白菜;下标依次为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
-
Problem Set is the place where you can find large amount of problems from differ...
Problem Set is the place where you can find large amount of problems from different programming contests. Online Judge System allows you to test your solution for every problem.-Problem Set is the place where you can find large amount of problems from different programming contests. Online Judge System allows you to test your solution for every problem.
- 2022-01-25 14:31:01下载
- 积分:1
-
一个简单的学生管理系统,是用C/C++混合写的,但由于时间不足。。。只有几个小时,所以做得不是很理想,但如果只是学习用,那就完全没问题了。...
一个简单的学生管理系统,是用C/C++混合写的,但由于时间不足。。。只有几个小时,所以做得不是很理想,但如果只是学习用,那就完全没问题了。-a simple student management system is the use of C/C was mixed, but because of the lack of time. . . Only a few hours, so do it is not ideal, but if only to study, it did not completely problem.
- 2022-04-24 03:29:50下载
- 积分:1
-
matlab 5.3中菜单unicontrol设计中如何传递变量。本人写了一个非常简单的界面程序,请大家帮忙建评一下一下。...
matlab 5.3中菜单unicontrol设计中如何传递变量。本人写了一个非常简单的界面程序,请大家帮忙建评一下一下。-menu design unicontrol how to pass variables. I wrote a very simple interface program, we help build commentary about what.
- 2022-09-18 13:15:03下载
- 积分:1
-
Guinness dos batch command, which is very wide, basically should be good enough...
dos批处理命令大全,里面内容很全,基本上dos编程应该够用了-Guinness dos batch command, which is very wide, basically should be good enough for dos programming
- 2022-05-06 06:31:18下载
- 积分:1
-
包含一个源文件,实现一个简单的计算器功能,如自己再扩充功能,可实现自定义变量,自定义方程等。...
包含一个源文件,实现一个简单的计算器功能,如自己再扩充功能,可实现自定义变量,自定义方程等。-contains a source, the realization of a simple calculator functions, such as further expansion of their functions can be realized from the definition of variables, since the definition of equations.
- 2023-03-28 21:00:03下载
- 积分:1
-
简单的用于获取网卡信息的源代码,有点乱IP+MAC
简单的用于获取网卡信息的源代码,有点乱IP+MAC-Simple card information for access to the source code, somewhat arbitrary IP+ MAC
- 2023-07-24 01:40:03下载
- 积分:1
-
S先生与P先生谜题
设有两个自然数X、Y,2<=X<=Y<=99,S先生知道这两个数的和S,P先生知道这两个数的积P,
他...
S先生与P先生谜题
设有两个自然数X、Y,2
- 2022-01-20 22:38:20下载
- 积分:1
-
实现了C++的分数类,实现的分数与整数,分数与int,整数与int的混合操作,用多态和虚函数来实现digit_number()
实现了C++的分数类,实现的分数与整数,分数与int,整数与int的混合操作,用多态和虚函数来实现digit_number()-Realize the C++ The Score category, the scores and realize integer, scores and int, and int mixed integer operations, using virtual functions and polymorphism to achieve digit_number ()
- 2022-03-02 18:18:42下载
- 积分:1
-
一个罪恶的功能,在控制台上实现动态的正弦函数
一个sin函数,实现在控制台上动态正弦函数-A sin function, to achieve dynamic sine function on the console
- 2022-01-27 20:01:06下载
- 积分:1