Hi, I have a new frustration on my hands. I'm trying to have a 2D array for i.e.
char cBuf[1000][50] = {0};
,
now I assume, that I have a block of 1000 cBufs, and each of them has a place for aditional 50 chars, so I basically have a cBuf that goes from cBufs[0 - (1000*50-1)]. Now I'm simply trying to write some text on each "line" in cBufs 2D array, give you an example:
1 2 3
|
cBuf[0] = "Wooooork!!";
cBuf[1] = "still not?";
cBuf[2] = "ok, i give up";
|
so now in my head this would look like this:
cBuf's memory:
"Wooooork!!\0__________________________________________________" <- cBuf[0]
"still not?\0__________________________________________________" <- cBuf[1]
"ok, i give up\0_______________________________________________" <- cBuf[2]
...
.
.
ok all good and well, comes compile time, I get an error: "Expression must be a modifiable lvalue error". Where is my logic faulty?? What am I missing?
Thanks for any help.