-
Category : Other
Tags :
- Update : 2012-11-26
- Size : 9kb
- Downloaded :0次
- Author :z****
- About :
Nobody
- PS : If download it fails, try it again. Download again for free!
Introduction - If you have any usage issues, please Google them yourself
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)) )
Packet file list
(Preview for download)
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
Related instructions
- We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
- The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
- Please use Winrar for decompression tools
- If download fail, Try it againg or Feedback to us.
- If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
- Before downloading, you can inquire through the uploaded person information