Skip to main content
gamedev.net
🔒 Locked

pointers tofunction... whats the point

Started by r3n3gad3 Jul 20, 2003 at 9:20 PM 0 replies 250+ views
Original Post
r3n3gad3
r3n3gad3
hey i learned pointers to functions a while ago and have since never used... i was just wondering if there was some unknown use i have missing out with them... thanz
31337
31337
on the subject of function pointers - http://www.function-pointer.org

Function Pointers R U L E. Suppose your writing a class that performs some random task and needs to log errors. However, you want to make the error logging procedure customizable. You don''t want it to always simply printf(), or write it to the same file everytime, you want the programmer using the class to be able to choose how to log the errors.

Time for a function pointer!
OpenGL Revolutions http://students.hightechhigh.org/~jjensen/

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.