文件名称:snail
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- FaLeF*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在Linux环境下,创建蜗牛型数组,并从命令行传递数组阶数,通过makefile实现自动编译-Create the below format number list(like a snail).
If input is 3, the output should be:
1 2 3
8 9 4
7 6 5
If input is 4, the output should be:
1 2 3 4
12 13 14 5
11 16 15 6
10 9 8 7
If the input is 5, the output should be:
1 2 3 4 5
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9
The input should be in the command line, but not in your code
internally.
If input is 3, the output should be:
1 2 3
8 9 4
7 6 5
If input is 4, the output should be:
1 2 3 4
12 13 14 5
11 16 15 6
10 9 8 7
If the input is 5, the output should be:
1 2 3 4 5
16 17 18 19 6
15 24 25 20 7
14 23 22 21 8
13 12 11 10 9
The input should be in the command line, but not in your code
internally.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
snail\AnchorTest
.....\AnchorTest.c
.....\makefile
snail
.....\AnchorTest.c
.....\makefile
snail