I've initialised the following array to store moves in a tic-tac-toe game (there can be up to 100 moves (10x10 grid). Each subarray needs to store the row and column of the move, as well as the symbol being placed there.
char moves[100][3];
I then want to insert the three values into each subarray. I use the variable moveCount for the index into which i want to store the subarray of move data.
moves[moveCount] = {row, col, symbol};
however this is throwing the error "expression must be a modifiable lvalue". How do i go about inserting the subarray of move data into the overall array?