Is there anyway you could make one part of a multi-dimensional array char* and another int, like this?
Code:array[2][2] = { char*, int, char*, int, }
Is there anyway you could make one part of a multi-dimensional array char* and another int, like this?
Code:array[2][2] = { char*, int, char*, int, }
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.
The main thing I wanted to do was have user defined characters as game pieces. ('X', 'O' etc) I realise now that because I'm just using a simple multidimension array [9][9] it isn't a string!! (That's where I was confused...)
Use a struct!
Code:struct { char* str; int val; } array[2]; ex: cout << array[1].str << endl;
Thanks, I'll try to implement that!
I am against the teaching of evolution in schools. I am also against widespread
literacy and the refrigeration of food.