Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: size of C++ class question...

Author: James Robertson

Date: 23:40:01 02/13/99

Go up one level in this thread


I had problems with wierd sizes too. I was going to make my book records 12
bytes in size (64 bits for hash code, 32 for scores and stuff) but found that
even if I declared the struct:

struct BookRecord
{
  unsigned __int64 code;
  int              score;
}

sizeof(BookRecord) would still = 16 bytes!!! I have no idea why, and to this day
my book records are 16 bytes.....

James



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.