Well, next time, post the minimal compilable code. Otherwise I am supposed to look for typos for you

.
Try my STL based version of shuffling. All you need is your cards to be stored in a "normal" array or a std::vector from <vector>.
Include <algorithm> to use std::shuffle.
Just quickly startup a simple C++ console project and experiment with it. See if you like it

.