The part where I do this:
show_hand.append(values[hand[loop].Value]);
Is giving me trouble during runtime...
For some reason I can't see the problem with my code, maybe you can?
values is a typedef std::vector<string> lookup.Code:string read_cards() { show_hand.erase(); for(unsigned int loop = 0; loop < hand.size(); loop++) { show_hand.append(values[hand[loop].Value]); show_hand.append(" of "); show_hand.append(suits[hand[loop].Suit]); show_hand.append(" "); } show_hand.append("\n"); return show_hand; }
and so is suits..



LinkBack URL
About LinkBacks



