-
删除数组相同元素,并用冒泡法进行排序,最后显示出来。
删除数组相同元素,并用冒泡法进行排序,最后显示出来。
- 2022-12-14 06:05:04下载
- 积分: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
-
Xinglong Beauty salon management system, a good beauty salon business management...
兴隆美容美发管理系统,不错的美容美发行业管理软件,很适合美容美发日常营业管理-Xinglong Beauty salon management system, a good beauty salon business management software, it is suitable for day to day business management of beauty salons
- 2022-01-23 10:21:17下载
- 积分:1
-
用Verilog HDL 语言写的在LCD液晶上显示文字的源程序
用Verilog HDL 语言写的在LCD液晶上显示文字的源程序-with Verilog HDL write on the LCD display text of the source
- 2022-02-26 21:25:51下载
- 积分:1
-
AutoCAD的dwg
一个对象的嵌入的例子,包括创建一个对象和创建脚本-an embedded object examples, including the creation of an object and the creation of the script
- 2023-06-22 15:05:03下载
- 积分:1
-
酒店管理系统,铅的SQL,包括密码没有它是高贵的3…
酒店管理系统,pb+sql,无密码包括如同堂堂吧 323-hotel management system, pb sql, including passwords without it as a dignified 323
- 2022-06-03 07:50:29下载
- 积分:1
-
在VB.NET的环境下,可以实现函数的调用。
在VB.NET的环境下,可以实现函数的调用。-In the VB.NET environment, can achieve the function call.
- 2022-08-20 16:49:51下载
- 积分:1
-
测试工具jmeter可用来进行性能测试,功能测试以及数据库访问性能测试...
测试工具jmeter可用来进行性能测试,功能测试以及数据库访问性能测试-Jmeter testing tool can be used to conduct performance testing, functional testing and performance testing database access
- 2022-04-15 12:44:03下载
- 积分:1
-
windows里面自带的扫雷游戏
windows里面自带的扫雷游戏-windows inside the mine own game
- 2022-12-01 03:20:03下载
- 积分:1
-
在西洋棋中的武士与象棋中的马相似,走的都是L形的路,本程序以一个非递归的程序,输入一个表示棋盘的大小值n,在输入一个起点的坐标,找出一条从第一格起可以让武士棋走...
在西洋棋中的武士与象棋中的马相似,走的都是L形的路,本程序以一个非递归的程序,输入一个表示棋盘的大小值n,在输入一个起点的坐标,找出一条从第一格起可以让武士棋走完n2格而不重复的路径。-In chess and chess in the samurai s horse is similar to walking are L-shaped path, the procedure to a non-recursive procedures, enter a value that the size of the chessboard of n, in the input the coordinates of a starting point to identify a starting from the first grid allows grid n2 samurai chess through the path without duplication.
- 2022-08-19 13:48:07下载
- 积分:1