From c795e5c62eec067645f50e102daa4aa25ced206d Mon Sep 17 00:00:00 2001 From: sauron Date: Thu, 4 Mar 2021 16:19:02 +0900 Subject: [PATCH] edit test.cpp --- ZCppMain/test.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/ZCppMain/test.cpp b/ZCppMain/test.cpp index 34047f5..17834ed 100644 --- a/ZCppMain/test.cpp +++ b/ZCppMain/test.cpp @@ -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(ZCShowData2::Exec, VO_CTuple ); + VO_IntList.IterElemRef(ZCShowData3::Exec, &VO_CTuple); VO_IntList.IterElement(&VO_CFunctor1 ); return 0;