48 lines
749 B
C++
48 lines
749 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<<endl;
|
|
|
|
|
|
typedef ZNsMain::ZtCObjList<int> CListByInt;
|
|
|
|
CListByInt VO_IntList;
|
|
|
|
VO_IntList.AddTail(1);
|
|
VO_IntList.AddTail(4);
|
|
VO_IntList.AddTail(2);
|
|
VO_IntList.AddTail(8);
|
|
VO_IntList.AddTail(9);
|
|
|
|
VO_IntList.IterElement(ShowData);
|
|
|
|
return 0;
|
|
}/*
|
|
int main(int ArgiCnt, char** AppArgu)*/
|
|
|
|
|
|
/*/////////////////////////////////////
|
|
|
|
|
|
■ 컴파일
|
|
|
|
g++ -o test.exe test.cpp -I..
|
|
|
|
|
|
/////////////////////////////////////*/ |