Message-ID: From: "Cristovao Braga" To: "Jeff Weeks" Cc: "djgpp list" Subject: Re: pointer trouble... need help Date: Sun, 2 Mar 1997 02:29:41 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > From: Jeff Weeks > I've got a structure: > > tbuf *buf_data; > bbuf *buf_data; > tbuf = new buf_data[video.max_x]; > bbuf = new buf_data[video.max_x]; > > and now I want to copy the values from bbuf to tbuf. The following > should work shouldn't it? > > tbuf = bbuf; try *tbuf = *bbuf; this way you'll referencing the values stored at the memory locations instead of the memory location. > > Jeff Weeks >