edit test.cpp a bit
This commit is contained in:
@ -24,15 +24,35 @@ int main(int ArgiCnt, char** AppArgu)
|
||||
VO_IntList.AddTail(9);
|
||||
|
||||
|
||||
_FFS_(CShowData)
|
||||
_FFS_(ZCShowData)
|
||||
(ZTypInt AiInt)
|
||||
{
|
||||
cout<<"# Elem : "<< AiInt << endl ;
|
||||
}
|
||||
cout<<"# Elem : "<< AiInt << endl;
|
||||
}/*
|
||||
(ZTypInt AiInt)*/
|
||||
_FFC_(My3)
|
||||
|
||||
|
||||
VO_IntList.IterElement(CShowData::Exec);
|
||||
class ZCFunctor1
|
||||
{
|
||||
private:
|
||||
ZTypInt mi_Index;
|
||||
public :
|
||||
|
||||
ZCFunctor1(){mi_Index=0;}
|
||||
|
||||
void operator()(int ArgiValue)
|
||||
{ cout<<"# index="<<++mi_Index<<", Value="<<ArgiValue<<endl; }
|
||||
public :
|
||||
};/*
|
||||
class ZCFunctor1*/
|
||||
|
||||
|
||||
ZCFunctor1 VO_CFunctor1;
|
||||
|
||||
|
||||
VO_IntList.IterElement(ZCShowData::Exec);
|
||||
VO_IntList.IterElement(&VO_CFunctor1 );
|
||||
|
||||
return 0;
|
||||
}/*
|
||||
|
Reference in New Issue
Block a user