edit test.cpp

This commit is contained in:
2021-03-04 16:19:02 +09:00
parent 3ed8a75620
commit c795e5c62e

View File

@ -61,19 +61,28 @@ int main(int ArgiCnt, char** AppArgu)
_FFS_(ZCShowData2)
(ZTypInt AiInt, ZCTuple& VR_CTuple)
(ZTypInt AiInt, ZCTuple& AR_CTuple)
{
cout<<"# Elem : "<< AiInt << VR_CTuple._1++ << endl;
cout<<"# Elem1 : "<< AiInt << ", nth=" << AR_CTuple._1++ << endl;
}/*
(ZTypInt AiInt, ZCTuple& VR_CTuple)*/
(ZTypInt AiInt, ZCTuple& AR_CTuple)*/
_FFC_(ZCShowData2)
_FFS_(ZCShowData3)
(ZTypInt AiInt, ZCTuple* AP_CTuple)
{
cout<<"# Elem2 : "<< AiInt << ", nth=" << AP_CTuple->_1 << endl;
}/*
(ZTypInt AiInt, ZCTuple* AP_CTuple)*/
_FFC_(ZCShowData3)
ZNsHide::ZCFunctor1 VO_CFunctor1;
/* ZCFunctor1 선언이 main() 바깥에 있어야 하는 문제를 해결할 수 없을까. */
VO_IntList.IterElement(ZCShowData1::Exec);
VO_IntList.IterElemRef(ZCShowData2::Exec, VO_CTuple );
VO_IntList.IterElemRef(ZCShowData3::Exec, &VO_CTuple);
VO_IntList.IterElement(&VO_CFunctor1 );
return 0;