Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
How can I get the card symbols like Hearts and Clubs?
I have made a card game in C++ and I stumbled across a set of symbols at run-time. I realised why, I had an array of 5 integers and the program was trying to retrieve the data from the 6th variable, which it shouldn't have done! I've fixed the problem now, but it was pointing to a set of symbols, which came from the location directly after the array, which could have been anything!
Anyway, these symbols that were appearing were conveniently exactly what I was after. I need the 4 symbols in a pack of cards, Clubs, Spades, Diamonds, and Hearts.
I was rather hoping it would be something simple like "s" for spades perhaps, like new line is "
Can someone please help me find these symbols?