[RESOLVED] Just curious about std::string
Good evening lads.
OK. Lets say I make string
Code:
std::string dataBlock;
...........................................
//Fill that string with some data
.........................................
and presume that at some point I make
Code:
dataBlock[i] = '\0';
So what happens there. Does the compile see this place/address where was dataBlock[i] set to '\0', as empty memory and can writte there new stuff or not ?
I hope you understand what I mean. OC its g++.
Share and always try to give back more.
Bookmarks