Im folowing a c++ course and im stuck writing string or char arrays to matrices.
The problem is i have a matrix of size [i][j] with random values from 0 to 3.
Each of these values have to correspond to either a string or char array.
0=EMPTY
1=RES
2=SUS
3=KILL
Now i want to know if it is possible to either make use of enumarations since they already correspond to integer values like.
enum CELLTYPE {EMPTY, RES,SUS, KILL}
and then seed them in matrix randomly put i dont know how to do this.
I think it's much easier to just first seed matrix with 0 to 4 which i know how to do.
But then i cant convert the values to string or char. gives me error cant convert int to char if i do it like this.