cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Function variable...
Function variable...
Dec 18, 2012 at 11:32pm UTC
Imadatobanisa
(647)
Does C++ support Function variable??
Fox example :
1
2
3
4
*Func() = printf; Func = strcpy; Func = rand; Func = ...everything...
Do you know this variable type? And how to define it? (Any help would be greatly appreciated). :)
Last edited on
Dec 18, 2012 at 11:34pm UTC
Dec 19, 2012 at 1:05am UTC
JLBorges
(13770)
Pointers to functions:
http://en.wikipedia.org/wiki/Function_pointer
Polymorphic call wrapper:
http://en.cppreference.com/w/cpp/utility/functional/function
Topic archived. No new replies allowed.