edit test.cpp

This commit is contained in:
2021-03-08 20:37:34 +09:00
parent 2b4f3b5007
commit 7bb03e148d
3 changed files with 24 additions and 2 deletions

View File

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