edit test.cpp

This commit is contained in:
2021-03-04 16:21:22 +09:00
parent 104ce1f866
commit 46de31135c

View File

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