I'm trying to get an input from the user and store it in a certain place in a 2d Array called Matrix. The Compiler says:
error: assignment makes integer from pointer without a cast [-Werror] Matrix[i][j]=matrixinput;
This is the part of my Program:
int i=0;
int j=0;
char size[1];
char matrixinput[1];
int sizeint=0;
int Matrix[10][10];
while (i<=(sizeint-1) && j<=(sizeint-1)){
gets(matrixinput);
Matrix[i][j]=matrixinput;
j++;
if (j==(sizeint-1)){
j=0;
i++; }
else {continue;};
};
I am just a Student with basically 0 expeience in c or any kind of programming, so maybe somebody can help me to find out how I can fix this.