[1]陈凤祥 李汪根.C++动态数组的实现与重用[J].计算机技术与发展,2010,(02):79-82.
 CHEN Feng-xiang,LI Wang-gen.Implementation and Reuse of C + + Dynamic Arrays[J].,2010,(02):79-82.
点击复制

C++动态数组的实现与重用()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
期数:
2010年02期
页码:
79-82
栏目:
智能、算法、系统工程
出版日期:
1900-01-01

文章信息/Info

Title:
Implementation and Reuse of C + + Dynamic Arrays
文章编号:
1673-629X(2010)02-0079-04
作者:
陈凤祥 李汪根
安徽师范大学数学计算机科学学院
Author(s):
CHEN Feng-xiang LI Wang-gen
School of Mathematics and Computer Science, Anhui Normal University
关键词:
软件重用动态数组函数模板数组类数组类模板
Keywords:
software reuse dynamic array function templates array class array templates
分类号:
TP311
文献标志码:
A
摘要:
数组是应用程序中经常要用到的一种数据结构。为解决C++定义后的数组不能改变其大小的情况,根据软件重用的思想,给出了用函数模板、动态数组类和数组类模板生成C++动态数组的方法,并对这些方法在代码重用方面进行了比较。文中主要给出了动态生成二维数组的函数模板、动态数组类和数组类模板的定义,以及部分成员函数和运算符重载函数的实现代码或算法。以动态生成二维整型数组,进行矩阵的加法运算为例,给出了使用方法。应用文中所给的方法,能满足应用程序中动态定义一维和二维数组的需要。
Abstract:
Arrays are important data structures used to proggramming,the C++ array size is fixed after declaring. According to the idea of software reuse, these methods to generate C ++ dynamic array were put forward and these methods based on function templates, ar

相似文献/References:

[1]王东 康雁.层结构在医学影像平台中的应用[J].计算机技术与发展,2009,(08):166.
 WANG Dong,KANG Yan.Application of Overlay Framework in Medical Image Flatform[J].,2009,(02):166.
[2]刘芳 林拉.基于本体的特定领域软件体系结构设计的研究[J].计算机技术与发展,2006,(12):22.
 LIU Fang,LIN La.Research of Design of Domain Specific Software Architecture Based on Ontology[J].,2006,(02):22.
[3]夏大鹏,田泽,姜丽云. GJB5000 A三级在具体型号项目中的应用[J].计算机技术与发展,2015,25(06):171.
 XIA Da-peng,TIAN Ze,JIANG Li-yun. Application of GJB5000 A of Three Level in Specific Type of Project[J].,2015,25(02):171.

备注/Memo

备注/Memo:
安徽省自然科学基金(070412043)陈凤祥(1956-),女,讲师,研究方向为软件工程李汪根,博士,副教授,研究领域为智能计算和生物信息学。
更新日期/Last Update: 1900-01-01