All pastes #183768 Raw Edit

Stuff

public text v1 · immutable
#183768 ·published 2006-09-27 06:41 UTC
rendered paste body
Encoder::Encoder(const Encoder & rhs)
{
   pictureSize = rhs.pictureSize;
   idx = rhs.idx;
   
   picture = new BMP**[pictureSize];
   totalShares = new int*[pictureSize];
   
   for (int i=0; i<pictureSize; i++)
   {
      totalShares[i] = rhs.totalShares[i];
      picture[i] = new BMP * [*totalShares[i]];
      for (int j=0; j<*totalShares[i]; j++)
      {
	 *picture[i][j] = *rhs.picture[i][j];
      }
   }
}