48 lines
735 B
C++
48 lines
735 B
C++
|
|
|
|
#include <iostream>
|
|
#include "ZtCObjList.H"
|
|
|
|
|
|
using namespace std ;
|
|
using namespace ZNsMain ;
|
|
|
|
|
|
void ShowData(ZTypInt AiInt)
|
|
{
|
|
cout<<"# Element : "<<AiInt<<endl;
|
|
}/*
|
|
void ShowData(ZTypInt AiInt)*/
|
|
|
|
|
|
int main(int ArgiCnt, char** AppArgu)
|
|
{
|
|
cout<<"C++ 's great start"<<endl;
|
|
|
|
|
|
typedef ZNsMain::ZtCObjList<int> CListByInt;
|
|
|
|
CListByInt VO_IntList;
|
|
|
|
VO_IntList.AddData(1);
|
|
VO_IntList.AddData(4);
|
|
VO_IntList.AddData(2);
|
|
VO_IntList.AddData(8);
|
|
VO_IntList.AddData(9);
|
|
|
|
VO_IntList.IterElement(ShowData);
|
|
|
|
return 0;
|
|
}/*
|
|
int main(int ArgiCnt, char** AppArgu)*/
|
|
|
|
|
|
/*/////////////////////////////////////
|
|
|
|
|
|
■ 컴파일
|
|
|
|
g++ -o test.exe test.cpp -I..
|
|
|
|
|
|
/////////////////////////////////////*/ |