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
@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).
awsome!! Game world here I come!!
Thet3 1 day ago
Thanks so much!
TheTIprogrammer 6 months ago in playlist C++ Beginner Tutorials
thank you so much for this entire series
GhostXoP 1 year ago
Your videos make challenging concepts seem very easy, thank you for this, and keep it up!
DrSwitch3d 2 years ago 11
advantis03, why do you say that?
MrTakeAshot1 2 years ago
"Function pointers are largely unnecessary". Please elaborate.
advantis03 2 years ago 9
A better way to implement this would be to create a CCoinGroup class and then implement SortByYear and SortByValue member functions within it.
CorporationsSuck 2 years ago
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
neverfearchrisishere 2 years ago
@advantis03 you most of the time wont need them maybe
GhostXoP 1 year ago
@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).
advantis03 1 year ago