I have a question about the usage of function pointers in general. In my blackjack game I have alot of output strings that are updated with different kinds of functions, a draw function would update my hand, a different function would update a prompt or something like that...
I'm trying to make it so I can automatically update all my output items in one call even though they are updated in different ways. I figure I could use inheritence for nodes in a linked list to derive an update function for these differently updated output items. I could also create the nodes with a pointer to a function that updates them, would that be possible?