Archid
Warlord
The initialisation is there to ensure that the variables have some valid value, the read() function is called afterwards and sets the variable to the value that was saved.
The & symbol is there for the compiler so it knows to use the memory address of the m_iGold variable to store the value it is reading from the stream. &m_iGold and m_iGold are both referring to the same m_iGold variable. The &m_iGold points to a memory address whereas m_iGold points to the value that is stored at the memory address.
The & symbol is there for the compiler so it knows to use the memory address of the m_iGold variable to store the value it is reading from the stream. &m_iGold and m_iGold are both referring to the same m_iGold variable. The &m_iGold points to a memory address whereas m_iGold points to the value that is stored at the memory address.