-
Visual C# 韩信点兵算法演示源码
韩信点兵是一道古代数学题,内容是:韩信带兵不足百人,三人一行排列多一个,七人一行排列少两个,五人一行排列正好。相关代码:
int a = 0, b = 0, c = 0;//定义变量
for (int i = 1; i < 100; i++)//遍历
{
Math.DivRem(i, 3, out a);//3行一列时取余
Math.DivRem(i, 5, out b);//5行一列时取余
Math.DivRem(i, 7, out c);//7行一列时取余
if (a == 1 && b == 0 && c == 5)//如果3种方式的余数符合要求
{
textBox1.Text = i.ToString();//显示人数
return;
}
- 2022-01-25 14:48:17下载
- 积分:1
-
FMCW Radar Simulation for Range Estimation
说明: 1) According to the given specifications of FMCW radar system, evaluate the desired radar detection performance:
2) Range estimation under different ranges of target
3) Radar ranging accuracy
4) Radar range resolution
- 2019-02-03 09:59:50下载
- 积分:1
-
算法程序
UWB超宽带室内定位算法,TDOA,c语言版(UWB indoor positioning algorithm, TDOA, C language version)
- 2021-04-27 17:58:44下载
- 积分:1
-
Tcp通讯
说明: TwinCAT TCP/IP Server类似自由 口通讯,协议的双方或者多行决定必须类似自由 口通讯,协议的双方或者多行决定必须PLC PLC程序编确定自己如何发起通讯请求.(TwinCAT TCP/IP Server is similar to free port communication, the two or more parties of the protocol must decide by themselves, the PLC program determines how to initiate the communication request.)
- 2021-04-23 15:38:47下载
- 积分:1
-
log4j的示例代码
日志工具log4j的示例代码,并且有log4j.properties配置详解。
- 2022-07-18 20:13:29下载
- 积分:1
-
又是一个俄罗斯方块的的源代码,不过这个更高级点。初学者不要看...
又是一个俄罗斯方块的的源代码,不过这个更高级点。初学者不要看-is a Rubik"s cube of the source code, but the more advanced point. Beginners do not have to look
- 2022-04-27 19:35:18下载
- 积分:1
-
GPS常用专业术语编译
GPS常用专业术语编译-professional terminology commonly used GPS Compiler
- 2022-07-12 16:29:15下载
- 积分:1
-
sales accounting system
销售业绩核算系统-sales accounting system
- 2023-05-09 03:50:03下载
- 积分:1
-
马里奥游戏
这个游戏是马里奥(在日本人)的迷你版。该代码是用C写的与所谓的SDL库。
- 2022-04-24 17:31:33下载
- 积分:1
-
一款简易的贪食蛇游戏,颜色变换很有特色哦~
一款简易的贪食蛇游戏,颜色变换很有特色哦~-A simple Snake game, the color change is quite distinctive oh ~
- 2022-01-23 10:21:36下载
- 积分:1