GUID GUID::operator + (const GUID& num) { GUID temp; u16 sum = 0; u8 remain = 0; for (int i = 0; i < 7; ++i) { sum = this->getByte(i) + num.getByte(i) + remain; //add digits and the previous digits remainder remain = sum / 256; //new remainder temp[i] = sum % 256; //new digit } return temp; }
GUID::GUID(const GUID &theOther) { for (int i = 0; i < 7; ++i) { guid_[i] = theOther.getByte (i); } }