add ZtCArray.H
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
|
||||
|
||||
#include <iostream>
|
||||
#include "ZtCArray.H"
|
||||
#include "ZtCObjList.H"
|
||||
|
||||
|
||||
@ -36,8 +37,10 @@ int main(int ArgiCnt, char** AppArgu)
|
||||
|
||||
|
||||
typedef ZNsMain::ZtCObjList<int> CListByInt;
|
||||
typedef ZNsMain::ZtCArray <int> CArrayInt ;
|
||||
|
||||
CListByInt VO_IntList;
|
||||
CArrayInt VO_IntArr ;
|
||||
|
||||
VO_IntList.AddTail(10);
|
||||
VO_IntList.AddTail(40);
|
||||
@ -45,6 +48,12 @@ int main(int ArgiCnt, char** AppArgu)
|
||||
VO_IntList.AddTail(80);
|
||||
VO_IntList.AddTail(90);
|
||||
|
||||
VO_IntArr.AddTail(123);
|
||||
VO_IntArr.AddTail(153);
|
||||
VO_IntArr.AddTail(543);
|
||||
VO_IntArr.AddTail(553);
|
||||
VO_IntArr.AddTail(983);
|
||||
|
||||
|
||||
typedef ZtStTuple<int, int> ZCTuple;
|
||||
|
||||
@ -83,6 +92,7 @@ int main(int ArgiCnt, char** AppArgu)
|
||||
VO_IntList.IterElemRef(ZCShowData2::Exec, VO_CTuple ); VO_CTuple._1=1 ;
|
||||
VO_IntList.IterElement(ZCShowData3::Exec, &VO_CTuple);
|
||||
VO_IntList.IterElement(&VO_CFunctor1 );
|
||||
VO_IntArr .IterElement(&VO_CFunctor1 );
|
||||
|
||||
return 0;
|
||||
}/*
|
||||
|
Reference in New Issue
Block a user