Card shuffling and dealing create a program to shuffle and deal a deck of cards,the program should consist of a clas card a class deck of cards and a driver program

To deal a card, the driver just prints it out. The dealCard function does not print anything.

this is what i have ,It compiles but when i run it i get some garbage values in some of the cards and it throws an exception and terminates after printing some of the cards

found the error and fixed it how do i delete this post?

deleted all my code from here because i already solved the problem

Just mark the thread as "solved", they don't get deleted except in extraordinary cases. Thanks for trying to clean up though! :)