Advertisement

Lesson 32 C++ question

Started by December 21, 2001 12:31 AM
0 comments, last by nitzan 23 years, 2 months ago
In Lesson 32 we have the following struct: // File header struct MS3DHeader { char m_ID[10]; int m_version; } PACK_STRUCT; Then in the code we have the following line: MS3DHeader *pHeader = ( MS3DHeader* )pPtr; Can someone explain how the values from pPtr enter MS3DHeader ? Does it just linearly fill up the m_ID array and then the m_version ? Nitzan ------------------------- www.geocities.com/nitzanw www.scorchedearth3d.net -------------------------
It is two pointers so just the address is copied. If it was structures should it just be linearly filled up.

This topic is closed to new replies.

Advertisement