Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

C++ Console Lesson 39: Function Pointers

Loading...

Sign in or sign up now!
19,935
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 22, 2009

More at http://xoax.net
This C++ video tutorial explains how to use function pointers and create arrays of function pointers in C++.Please submit all questions to our forum:http://xoax.net/forum/

  • likes, 0 dislikes

Link to this comment:

Share to:

Top Comments

  • Your videos make challenging concepts seem very easy, thank you for this, and keep it up!

  • "Function pointers are largely unnecessary". Please elaborate.

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • Thanks so much!

  • @GhostXoP "Unnecessary" usually means "it can be done in a different way, and it's easier to understand and maintain", not "you probably don't need them as much as other language elements". I'm using function pointers to simplify things in certain situations (usually when they can go into an array or something).

  • thank you so much for this entire series

  • @advantis03 you most of the time wont need them maybe

  • Say you have a 'player' in a baseball game.

    Setup a Function pointer for the player which either allows to the player to act as a batter or as a fielder - and allows you to switch between these quickly and easily inside the program

  • A better way to implement this would be to create a CCoinGroup class and then implement SortByYear and SortByValue member functions within it.

  • advantis03, why do you say that?

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more