Placing things into memory
gamedev.net
The school teaching is that an array of something is a continuous strip in memory. I understand the basic type scenario int Test[2]; ends up in memory as being 4byte4byte (with nothing else in between). But how about the user defined types struct AStructure{int A;char B;char C;} Does AStructure Test[2] make a continuous memory strip like this? 4byte1byte1byte4byte1byte1byteAnd what about classes, how do class functi
0 التعليقات ·0 المشاركات ·104 مشاهدة