I see. Well, I took a peak at main.cpp – void RankHand(HandInfo* hand)
There is no reason to use a pointer in this situation, when using C++. Rather, one can use a reference – void RankHand(HandInfo &hand)
or void RankHand(const HandInfo &hand)
Don't use pointers when they're not needed. If there's one thing I know about C++ after like 25 years, is that pointers are not necessary 99% of the time.