Friday, 2025-01-31, 3:03 AM
Logged in as Guest | Group "Guests"Welcome Guest | RSS

Love Makes The World Go Round

Site Menu
Tag Board
Site Working Days

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: 1210 | Added by: tes1991 | Date: 2011-09-22 | Comments (0)

Tags...
Tencent
Statistics

Total online: 2
Guests: 2
Users: 0

Copyright MyCorp © 2025