-
C++程序设计源代码例
C++程序设计源代码例-C programming source code cases
- 2023-02-20 05:50:03下载
- 积分:1
-
check and update program
check and update program
- 2023-04-20 22:20:03下载
- 积分:1
-
Find prime numbers prepared by screening the function: void sieve (bool isPrime...
编写筛选查找素数函数:
void sieve(bool isPrime[], int n)
其中isPrime[ ]为一个布尔型数组,n为数组大小。由于2是第一个素数,
所以设置isPrime[0]和isPrime[1]的值为false,并设置其余的元素初值为true。
然后对从4到n-1的每一个i,判断i是否能够被2整除,如果i能够被2整除,则设置isPrime[i]为false。
对从2到n/2的每一个可能的数值重复以上处理,当操作结束时,所有值为true的isPrime[i]所对应的i就是素数,它们将是从筛子中掉下来的。-Find prime numbers prepared by screening the function: void sieve (bool isPrime [], int n) which isPrime [] as a Boolean array, n is the size of the array. Because 2 is the first prime number, so set the isPrime [0], and isPrime [1] a value of false, and set the initial value of the remaining elements of true. And then from 4 to n-1 for each i, to determine whether i can be divisible by 2, if i can be divisible by 2, then set the isPrime [i] is false. From 2 to n/2 possible values for each one to repeat the above processing, when the operation ended, all the true value of the isPrime [i] corresponding to i is a prime number, they will be falling from the sieve in the past.
- 2023-03-02 04:45:03下载
- 积分:1
-
人机猜数软件,可以实现人猜机器和机器才人两种功能,界面友好,程序健壮...
人机猜数软件,可以实现人猜机器和机器才人两种功能,界面友好,程序健壮-guess a few man-machine software, can achieve guess machines and machines were only two functions, friendly interface and robust procedures
- 2022-01-31 08:57:41下载
- 积分:1
-
几道简单的数学建模(体重变化 水的流出时间 简单线性规划 简单随机库存 水道测量 层次分析法)是当初的建模作业 有分析 也有matlab和mathematica...
几道简单的数学建模(体重变化 水的流出时间 简单线性规划 简单随机库存 水道测量 层次分析法)是当初的建模作业 有分析 也有matlab和mathematica程序-A few simple mathematical modeling (body weight change in the water outflow time of a simple linear programming simple random inventory hydrographic AHP) is the original analytical modeling operations have matlab and mathematica program
- 2023-04-05 16:15:03下载
- 积分:1
-
java version of Weiqi for U.S. exchanges and learning use
java版本的围棋,供大家交流和学习使用-java version of Weiqi for U.S. exchanges and learning use
- 2022-10-14 14:25:03下载
- 积分:1
-
clock generator can demonstrate minutes and seconds, hours, the next to the FPGA...
时钟发生器,可以显示分,秒,小时,下到FPGA上验证过,功能基本正常-clock generator can demonstrate minutes and seconds, hours, the next to the FPGA tested normal function
- 2023-03-11 14:40:03下载
- 积分:1
-
用用VB实现透明的Form,使用更方便,界面更美观
用用VB实现透明的Form,使用更方便,界面更美观-use with VB transparent Form, the use of more convenient and more beautiful interface
- 2022-03-18 00:37:04下载
- 积分:1
-
delphi write ADOMS steel source, in line with the steel industry sales model
delphi写的钢材进销存源码,符合钢材行业的销售模式-delphi write ADOMS steel source, in line with the steel industry sales model
- 2022-07-01 21:14:29下载
- 积分:1
-
约瑟夫环程序,在Visual C++里运行,可以运行的。
约瑟夫环程序,在Visual C++里运行,可以运行的。-Josephus procedures, the Visual C Lane running, running.
- 2022-05-18 12:13:59下载
- 积分:1