搜索资源列表
用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
nmagic
- N阶磨方阵算法代码。用于生成N阶行、列和对角线之和相等的方阵。-N-order square algorithm code mill. Used to generate N-order rows, columns and diagonal and equal to the square.
RemoveChar
- 针对网上复制下来的代码,前面都有N列有行号或者空格,此程序可以去掉那些东西,重新生成一个文件-For online copy down the code, preceded by N columns have line numbers, or spaces, this procedure can get rid of those things, to re-generate a file