-
Array of strings
I haven't coded in a while and I've forgotten how to do something like this. Please could someone give my memory a little nudge! :D
Code:
char wheels[ ][ 6 ] = { {Cherry, Cherry, Cherry, Plum, Plum, Bell, Bar},
{Cherry, Cherry, Plum, Plum, Plum, Bell, Bar},
{Plum, Plum, Bell, Bell, Bar, Cherry, Cherry} };
-
Code:
char *wheels[][7] = {
{"Cherry", "Cherry", "Cherry", "Plum", "Plum", "Bell", "Bar"},
{"Cherry", "Cherry", "Plum", "Plum", "Plum", "Bell", "Bar"},
{"Plum", "Plum", "Bell", "Bell", "Bar", "Cherry", "Cherry"}
};
-
Ah! There we go! Thanks Prelude.