Is there such a way to initialize a char array and then loop through them all and change the value? I'm trying to create a table like structure.
I just keep getting errors like "Cannot initialize a value of type 'char' with an lvalue of type 'const char [3]'.
I'm using Xcode 6.1.1 for development
int width = 25;
int height = 50;
char board [50][25] = {""}; // height x width
for (int i = 0; i < width; i++) {
for (int j = 0; i < height; i++) {
if (i == 0) {
board[i][j] = {"||"};
}
}
}
char.