invalid conversion from 'const char*' to 'char'
I'm trying to make a little code that makes a 2-dimensional character array and fills it with 0's(or a's or whatever char) for now.
it gives me this error when i compile:
Quote:
invalid conversion from 'const char*' to 'char'
here's the code:
Code:
int scrsizex=10, scrsizey=10;
char scr[scrsizey][scrsizex];
for (int county=0; county<scrsizey;county++){
for (int countx=0; countx<scrsizex;countx++){
scr[county][countx]="0";
}
}
Compiling with Dev-C++ v4.9.9.2
Any ideas?