I want to show in console a matrix that starts out like this:
int matrix_1[2][3]= {{0, 0, 0}
{0, 0, 0}};`
Shown in console like
0 0 0
0 0 0
But then, just like in flash games where the Loading %1 updates to Loading %5 without scrolling down, I want the matrix shown in the console to update to this
1 2 3
4 5 6
In code like
int matrix_2[2][3]= {{1, 2, 3}
{4, 5, 6}};
I guess I can use \r, but I don't understand how to superpose matrix_2 over matrix_1, I've tried it and it doesn't work. Do i have to use curse.h library or can I superpose the matrix in another way?
I'm new at this aspect of C programming..