Problem #1:
Code:
for ( int i = 0; i == 51; i++ ) {
Your for loop will never execute. The middle statement (in this case i == 51) is the condition. As long as that condition evaluates to true, the loop is run, and when that condition evaluates to false, the loop stops. Since i starts at 0, i == 51 will not be true the first time through and the loop won't ever get run.
Problem #2:
Code:
if (i == 0){
int temp = 2;
}
When you define a variable inside of a block of code, that variable is only usable inside that block of code. Here, you define a new variable called temp that goes out of scope and is unusable immediately after the bracket that closes the if statement. If you have another variable called temp that you defined earlier in the code that you didn't post, and you want to set that value to 2, then get rid of the int part of the code above. Otherwise, move the definition to the block of code that you want it to be valid for.
Problem #3: If you want to convert a single digit integer into a character, just do this:
Code:
if (temp >= 0 && temp < 10)
deck[i][2] = temp + '0';
This is a trick that uses the fact that the nine characters that represent decimal digits are in order in the ASCII character set. You will have to use 'T' for 10, though, because it is two characters long and you are only storing a single character.
Hope that helps.