edit test.cpp

This commit is contained in:
2021-03-10 17:27:57 +09:00
parent f8fbc66cee
commit a2b499a7b4
4 changed files with 61 additions and 13 deletions

View File

@ -182,6 +182,22 @@ int main(int ArgiCnt, char** AppArgu)
(ZTypInt AiInt, ZCTuple* AP_CTuple)*/
_FFC_(ZCShowData4)
_FFS_(ZCShowData5)
(ZTypInt AiInt, int& AiIndex)
{
cout<<"# Elem5 : "<< AiInt << ", nth=" << AiIndex++ << endl;
}/*
(ZTypInt AiInt, int& AiIndex)*/
_FFC_(ZCShowData5)
_FFS_(ZCShowData6)
(ZTypInt AiInt, int& AiIndex)
{
cout<<"# Elem6 : "<< AiInt << ", nth=" << AiIndex++ << endl;
}/*
(ZTypInt AiInt, int& AiIndex)*/
_FFC_(ZCShowData6)
ZNsHide::ZCFunctor1 VO_CFunctor1;
/* ZCFunctor1 선언이 main() 바깥에 있어야 하는 문제를 해결할 수 없을까. */
@ -191,7 +207,9 @@ int main(int ArgiCnt, char** AppArgu)
VO_IntList.IterElement(ZCShowData3::Exec, &VO_CTuple);
VO_IntList.IterElement(&VO_CFunctor1 );
VO_IntArr .IterElement(&VO_CFunctor1 ); VO_CTuple._1=1 ;
VO_IntArr .IterElement(ZCShowData4::Exec, &VO_CTuple);
VO_IntArr .IterElement(ZCShowData4::Exec, &VO_CTuple); VO_CTuple._1=1 ;
VO_IntArr .IterElement(ZCShowData5::Exec, ZNsMain::ZtCRef<int>(VO_CTuple._1));
VO_IntList.IterElement(ZCShowData5::Exec, ZNsMain::ZtCRef<int>(VO_CTuple._1));
cout<< "# Press Any Key to exit" << endl; cin.get();