文件名称:source
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:520byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
锯齿数组
实现一个“可变长二维数组”,这个二维数组的行数可由输入决定,每行的元素个数仍可由输入决定。每个数组元素值都是1.
执行结果如下:
请输入行数:
5
请输入第1行的元素个数:
20
请输入第2行的元素个数:
34
请输入第3行的元素个数:
17
请输入第4行的元素个数:
9
请输入第5行的元素个数:
25
11111111111111111111 111 111 11
111 111 11111
111111111 111 111 1111
Press any key to continue-Jagged array to a variable-length two-dimensional array, two-dimensional array, the number of rows can be input to determine the number of elements in each row can still be decided by the input. Each array element values are 1. Execution results are as follows: Enter the number of rows: 5 Please enter the number of elements in the line 1: 20 Enter the number of elements in row 2: 34 Please enter the number of elements of 3 lines Please enter the number of elements in the line 4: 17: Enter the number of elements in the 5 rows: 25 11111111111111111111 1111111111111111111111111111111111 11111111111111111 111111111 1111111111111111111111111 Press any key to continue
实现一个“可变长二维数组”,这个二维数组的行数可由输入决定,每行的元素个数仍可由输入决定。每个数组元素值都是1.
执行结果如下:
请输入行数:
5
请输入第1行的元素个数:
20
请输入第2行的元素个数:
34
请输入第3行的元素个数:
17
请输入第4行的元素个数:
9
请输入第5行的元素个数:
25
11111111111111111111 111 111 11
111 111 11111
111111111 111 111 1111
Press any key to continue-Jagged array to a variable-length two-dimensional array, two-dimensional array, the number of rows can be input to determine the number of elements in each row can still be decided by the input. Each array element values are 1. Execution results are as follows: Enter the number of rows: 5 Please enter the number of elements in the line 1: 20 Enter the number of elements in row 2: 34 Please enter the number of elements of 3 lines Please enter the number of elements in the line 4: 17: Enter the number of elements in the 5 rows: 25 11111111111111111111 1111111111111111111111111111111111 11111111111111111 111111111 1111111111111111111111111 Press any key to continue
(系统自动生成,下载前可以参看下载内容)
下载文件列表
2.c
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。