50 lines
786 B
C++
50 lines
786 B
C++
|
|
|
|
#include <iostream>
|
|
#include "ZtCObjList.H"
|
|
|
|
|
|
using namespace std ;
|
|
using namespace ZNsMain ;
|
|
|
|
|
|
int main(int ArgiCnt, char** AppArgu)
|
|
{
|
|
cout<<endl<<"!!! 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);
|
|
|
|
|
|
_FFS_(CShowData)
|
|
(ZTypInt AiInt)
|
|
{
|
|
cout<<"# Elem : "<< AiInt << endl ;
|
|
}
|
|
_FFC_(My3)
|
|
|
|
|
|
VO_IntList.IterElement(CShowData::Exec);
|
|
|
|
return 0;
|
|
}/*
|
|
int main(int ArgiCnt, char** AppArgu)*/
|
|
|
|
|
|
/*/////////////////////////////////////
|
|
|
|
|
|
■ 컴파일
|
|
|
|
g++ -o test.exe test.cpp -I..
|
|
|
|
|
|
/////////////////////////////////////*/ |