Top Comments
All Comments (10)
-
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?



Your videos make challenging concepts seem very easy, thank you for this, and keep it up!
DrSwitch3d 2 years ago 11
"Function pointers are largely unnecessary". Please elaborate.
advantis03 2 years ago 9