Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop Other
Title: myTestFunctor Download
 Description: c++ implementation of the functor, support c functions and member functions, using a very simple source code with the use of examples include the first function:# include " Functor.h" initialization c function pointer Functor < int, int, int, int, int, int > fun1 (& FuncSum) printf ( " fun1: d \ n" , fun1.Exec (1, 2, 3, 4, 5)) Functor < int, int, int, int, int, int> fun2 fun2 = Functor < int, int, int, int, int, int> (& FuncSum) fun2 = fun1 member function to initialize: Fool myObj fun3 = Functor < int, float, float> (& myObj, & Fool:: CallMethod) if (fun3) (printf ( " fun3 is not null ...... \ n" ) ) else (printf ( " fun3 is null ...... \ n" ) ) if (fun3) ( printf ( " fun3 result is: d \ n" , fun3 (1.2f, 2.1f)) )
 Downloaders recently: [More information of uploader zmy12006]
 To Search:
File list (Check if you may need any files):
TestFunctor.vcproj
TestFunctor.vcproj.PC-200901081558.Administrator.user
TestFunctor.vcproj.PERSONAL-6EF27B.zmy.user
TestFunctor.sln
TestFunctor.suo
Functor.h
FunctorBase.h
GlobalFunctor.h
MemberFunctor.h
ReadMe.txt
stdafx.cpp
stdafx.h
TestFunctor.cpp
    

CodeBus www.codebus.net