|
Blog
Main » 2011 » September » 22
// bo1-1.cpp 抽象数据类型Triplet和Elemtype(由c1-1.h定义)的基本操作(8) Status InitTriplet(Triplet &T, ElemType v1, ElemType v2, EmleType v3) { // 操作结果:构造三元数组T,依次置T的三个元素的初值为v1, v2, v3 if (!(T = (ElemType *)malloc(3*sizeof(ElemType)))) exit(OVERFLOW); return OK; }
Status DestroyTriplet(Triplet &T) { // 操作结果:三元数组T被销毁
Category: 独自歌唱 |
Views: 1161 |
Added by: tes1991 |
Date: 2011-09-22
|
|
|
|
Statistics
Total online: 1 Guests: 1 Users: 0
|
| | |