What is the proper syntax for std::get_if on a std::shared_ptr< std::variant<...> >?Thanks TheDaemoness and dutch, that's compiling for me, and cout'ing the correct value for i.
What is the proper syntax for std::get_if on a std::shared_ptr< std::variant<...> >?The following code is pretty self explanatory, I'm getting some compiler errors when trying to compi...
Game of nim vs computer.The [i]marbles[/i] variable needs to be global. In the [i]playTheGame[/i] function, you don't update...
Simple OOP problem I can't figure outI'm glad you mentioned the [i]this[/i] keyword, that's something that I've been thinking about. What...
Using variable in grid (columns/rows)I recommend using a char array since strings are immutable. That means each time you change a string...
This user does not accept Private Messages