Search:

Type: Posts; User: Zaphod_b

Search: Search took 0.09 seconds.

  1. Re: Card Class (Setting string rank value. 1 = "Ace" etc)

    Then, I guess you can use a modest cascade of "if(){} else{}" statements to translate values to Strings so that you can print Ace, Jack, Queen and King as Strings instead of int values 1, 11, 12,...
  2. Re: Card Class (Setting string rank value. 1 = "Ace" etc)

    So, for integer values 1, 2, ..., 13 you want to associate Strings with the values

    "Ace" // 1
    "Deuce" // 2
    "Trey" // 3
    "Four"
    .
    .
    .
    "Queen" // 12
Results 1 to 2 of 2