Hi and thanks so far for everyone's help....
Bladactania: When I remove the * and try to set decktype[j] = value[d]; I'm presented with an error of "Invalid conversion from char* to char." This error disappears when I use *value[d].
Elysia: If I try to use strcpy as you mentioned, I don't think it's copying the data over. The program crashes before anything is printed on the screen.
Thanks for your help, to everyone who has posted... I'm trying to teach myself and I appreciate all your efforts! Also... I'm not so sure what I'd use in place of the main () command in this instance.... I thought it was a standard beginning...
Code:
#include <stdio.h>
#include <string.h>
main(){
int d, j;
d = 0;
char decktype[312]; // Controlled by int j - Will store type of card
char *value[13] = {"Ace", "Deuce", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"}; //controlled by int d
for (j=0; j<=311; j++)
{
strcpy (decktype[j], value[d]);
printf ("%s\n", decktype[j]);
d++;
if (d>12) {d=0;} //Resets the card value to Ace after King has been assigned.
}
return 0;}