首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于链表结构的多维动态数组设计方法
引用本文:闫沫,王瑜.基于链表结构的多维动态数组设计方法[J].西北师范大学学报,2011,47(1).
作者姓名:闫沫  王瑜
作者单位:西安建筑科技大学机电工程学院;西安航空技术高等专科学校机械工程系;
摘    要:针对动态数组生成中难以适应任意维数、任意数据类型、索引数据不够灵活等问题,提出一种基于链表结构的多维动态数组设计方法.该方法通过链表进行索引,采用变长参数列表技术动态生成数组.结果表明,该方法能够生成任意维动态数组;适用任意的数据类型;既能够直接利用数组下标索引数据,也能够对数据进行线性访问.与以往动态数组生成方法相比,更易于扩展,使用更加灵活.

关 键 词:多维动态数组  变长参数列表  链表  

Design method of multidimensional dynamic arrays based on linked lists
YAN Mo,WANG Yu.Design method of multidimensional dynamic arrays based on linked lists[J].Journal of Northwest Normal University Natural Science (Bimonthly),2011,47(1).
Authors:YAN Mo  WANG Yu
Institution:YAN Mo1,WANG Yu2(1.College of Mechanical and Electrical Engineering,Xi'an University of Architectureand Technology,Xi'an 710055,Shaanxi,China,2.Department of Mechanical Engineering,Xi'an Aerotechnical College,Xi'an 710077,China)
Abstract:To cope with problems such as the created dynamic arrays can not meet any dimension,any data type and also can not access data flexibly.A design method of multidimensional dynamic arrays is proposed.This method use linked lists to access data by pointer,and use variable-length argument lists technology to create any dimensional dynamic arrays.It is proved in practice that the method can be used in any data types and produce any dimensional arrays.One can both access an element from the created arrays with s...
Keywords:multidimensional dynamic array  variable-length argument list  linked list  
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号