cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
unsure of the meaning of some code
unsure of the meaning of some code
Aug 3, 2011 at 7:18pm UTC
cakeman54
(1)
hi,
first post here, so sorry if the question is silly :<
i'm looking though someone else's code and i see this line:
typedef
double
(*polarfunc)(
const
shcoord& sc);
where shcoord is a template which holds 3 floats. i'm not really sure what its supposed to do!
apologies, but any insight would be greatly appreciated :)
thank you for your time.
Aug 3, 2011 at 7:22pm UTC
ahura24
(154)
this is a "function pointer" that can take one argument of shcoord type :D of course this is a typedef and first you must create variable of polarfunc such az :
polarfunc pr;
pr = ...; // address of your function here !
Topic archived. No new replies allowed.