I'm just in the beginning stages of my code and already I'm in trouble.
The part that I'm working on is supposed to read a map into a 2d array, and I wanted to print out the array to see if I got the whole thing.
However, when I print it out, I get everything except for the half of the last line.
Here is my code so far:
#define MAXROW 50
#define MAXCOL 100
int Row_Num, Col_Num;
int ctr_Row, ctr_Col;
scanf ("%d %d", &Row_Num, &Col_Num);
printf ("%d %d\n", Row_Num, Col_Num);
scanf ("%c", &Map[ctr_Row][ctr_Col]);
printf ("%c", Map[ctr_Row][ctr_Col]);
printf ("%d %d", ctr_Row, ctr_Col);
and when I run the prog, the counters all come out correct, so what gives? Any help is greatly appreciated.