edit test.cpp a bit
This commit is contained in:
@ -8,6 +8,28 @@ using namespace std ;
|
||||
using namespace ZNsMain ;
|
||||
|
||||
|
||||
namespace ZNsHide
|
||||
{
|
||||
|
||||
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*/
|
||||
|
||||
}/*
|
||||
namespace ZNsHide*/
|
||||
|
||||
|
||||
|
||||
int main(int ArgiCnt, char** AppArgu)
|
||||
{
|
||||
cout<<endl<<"!!! C++'s Great Start !!!"<<endl<<endl;
|
||||
@ -33,23 +55,8 @@ int main(int ArgiCnt, char** AppArgu)
|
||||
_FFC_(My3)
|
||||
|
||||
|
||||
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;
|
||||
|
||||
ZNsHide::ZCFunctor1 VO_CFunctor1;
|
||||
|
||||
VO_IntList.IterElement(ZCShowData::Exec);
|
||||
VO_IntList.IterElement(&VO_CFunctor1 );
|
||||
|
Reference in New Issue
Block a user