I would like to have something like this in my blackjack program :
And so on and so forth.Code:string suit(int cardvalue) { if (cardvalue<13) return "Spades"; else if (cardvalue < 26) return "Diamonds"; }
But right now, all I can do is have it return 'S' (Spades), 'D'
(Diamonds), etc etc (The one letter being a character, as it will let
the function return a character).
Any help is appreciated.