搜索资源列表
用c编写的N*N的螺旋矩阵源代码
- /* 实现效果: 1 2 6 7 15 3 5 8 14 16 4 9 13 17 22 10 12 18 21 23 11 19 20 24 25 */ #include <stdio.h> #define N 5 //阶数,即N*N的螺旋矩阵 void main() { int i, j, num=1, a[N][N]; for(i=0; i<=N/2; i++) &nb
xhjz
- 打印如下形式的矩阵; n=5: 1 2 9 10 25 4 3 8 11 24 5 6 7 12 23 16 15 14 13 22 17 18 19 20 21 n=6: 1 2 9 10 25 26 4 3 8 11 24 27 5 6 7 12 23 28 16 15 14 13 22 29 17 18 19 20 21 30 36 35 34 33 32 31 看看1,2,3,4,5,6,7的序列。则可以看出,他们的排列几乎
L5
- 做一个梯形的数列运算,下一行包含上一行的内容,利用两个循环完成这件事情- 4. Write a program to print a table as follows: 1*1= 1 2*1= 2 2*2= 4 3*1= 3 3*2= 6 3*3= 9 …. 9*1= 9 9*2=18 9*3=27 9*4=36 9*5=45 9*6=54 9*7=63 9*8=72 9*9=81
2
- 用于编码进制转换,可以将2~36进制转换为2、4、8、16进制-use for conversion of number systems
8-channel-temperature
- 30H:采样高位 31H:采样低位 33H:存储组合的数据,初始化为0 34H35H.36H:组合的BCD码 37H~3CH:分离的BCD码,小数部分作如下处理:将3CH的数据放入3BH中-H: 30 sampling high 31 h: sampling low 33 h: data storage portfolio, initialized to 0 34 h35h. 36 h: combination of BCD 37 h ~ 3 ch: separa
Test6
- 用控制台程序倒着输出九九乘法表;输出结果按下图所示: 1*9=9 2*9=18 3*9=27 4*9=36 5*9=45 6*9=54 7*9=63 8*9=72 9*9=81 …… 1*3=3 2*3=6 3*3=9 1*2=2 2*2=4 1*1=1 - 1*9=9 2*9=18 3*9=27 4*9=36 5*9=45 6*9=54 7*9=63 8*9=72 9*9=81 …
gscale
- GSCALE Scales the intensity of the input image. G = GSCALE(F, full8 ) scales the intensities of F to the full 8-bit intensity range [0, 255]. This is the default if there is only one input argument. G = GSCALE(F, full16 ) scales the i
test-three
- 合肥工业大学 C++程序设计 实验报告三 习题及对应完整代码 编程产生下列数组,并输出。 ⑴一维数组 1) (1 4 9 16 25 36 49 64 81 100) 2) (1 3 6 10 15 21 28 36 45 55) 3) (1 2 3 5 8 13 21 34 55 89) -C++ programming lab reports, Hefei University of three exercises and the correspondin
ZigzagMatrix
- 得到如下样式的二维数组 *zigzag数组(JPEG编码取像素数据的排列顺序) * 0, 1, 5, 6,14,15,27,28, * 2, 4, 7,13,16,2 9,42, * 3, 8,12,17,25,30,41,43, * 9,11,18,24,31,40,44,53, * 10,19,23,32,39,45,52,54, * 20,22,33,38,46,51,55,60, * 21,34,37,47,50,56,59,61, * 35,36,4
PLC
- 8:32:34 12_自动化_唐宝权 2015/10/31 8:32:34 plc 谁下载了拷给我 有点大链接:http://pan.baidu.com/s/1pJ4A6Xd 密码:bcwl 8:36:47 12_自动化_唐宝权 2015/10/31 8:36:47 s7-200 到400 的视频教程链接:http://pan.baidu.com/s/1c0De2D6 密码:i712 -8:32:34 12_ automation _ Tang Baoquan
psasp-7.0
- psasp7.0 自带全算例 包含8机36节点等 -psasp7.0 examples 36
77
- 用数组实现7阶魔方矩阵。所谓的N阶魔方矩阵是指把1~N*N的自然数按一定方法排列成N*N的矩阵,使得:任意行、任意列以及两个对角线上的数之和都相等(N为奇数)。例如下面的5阶魔方矩阵,任意行、任意列以及两个对角线上的数之和都为65。 5阶魔方如下: 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22 10 12 19 21 3 11 18 25 2 9 奇数阶魔方矩阵的算法如下: 第1步:将1放入第一行的正中处。 第2步:按如下的方法
pcre-8.36.tar
- PCRE(Perl Compatible Regular Expressions)是一个轻量级的Perl函数库,包括 perl 兼容的正则表达式库。它比Boost之类的正则表达式库小得多。PCRE十分易用,同时功能也很强大,性能超过了POSIX正则表达式库和一些经典的正则表达式库。(The PCRE(Perl Compatible Regular Expressions) is a lightweight Perl library, including a Perl compliant Regu
c语言练习题
- Exercise 5: ‘for’ and ‘do … while” repetition statements 1. Write a program which uses a do/while loop to print out the first 10 powers of 2 other than 0 (ie. it prints out the values of 21, 22, ..., 210). Use a for loop to do the same. 注意 po
