edit test a bit
This commit is contained in:
@ -5,14 +5,44 @@
|
|||||||
|
|
||||||
|
|
||||||
using namespace std ;
|
using namespace std ;
|
||||||
|
using namespace ZNsMain ;
|
||||||
|
|
||||||
|
|
||||||
|
void ShowData(ZTypInt AiInt)
|
||||||
|
{
|
||||||
|
cout<<"# Element : "<<AiInt<<endl;
|
||||||
|
}/*
|
||||||
|
void ShowData(ZTypInt AiInt)*/
|
||||||
|
|
||||||
|
|
||||||
int main(int ArgiCnt, char** AppArgu)
|
int main(int ArgiCnt, char** AppArgu)
|
||||||
{
|
{
|
||||||
ZNsMain::ZtCObjList<int> CListByInt;
|
|
||||||
|
|
||||||
cout<<"C++ 's great start"<<endl;
|
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;
|
return 0;
|
||||||
}/*
|
}/*
|
||||||
int main(int ArgiCnt, char** AppArgu)*/
|
int main(int ArgiCnt, char** AppArgu)*/
|
||||||
|
|
||||||
|
|
||||||
|
/*/////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
|
■ 컴파일
|
||||||
|
|
||||||
|
g++ -o test.exe test.cpp -I..
|
||||||
|
|
||||||
|
|
||||||
|
/////////////////////////////////////*/
|
Reference in New Issue
Block a user