How to make a vector that runs functions?
Title says it all. I'm new to C++ and wanted to make a vector of functions to make my text based game work better. Would there be any way to make that work (or make a system where you can swap out several functions for one another)? Right now my code just gives me a wall of errors because I was stupid enough to make a vector of voids, but I think it's a pretty good example of what I'm trying to get working.
Thanks in advance, sorry if my code is atrocious.