[Coco] question C++

Luis Fernández luis46coco at hotmail.com
Wed Mar 21 22:46:30 EDT 2012


Hi
Thanks
With a very clear explanation

---------------------------------------------------------------------------------
Making 
CoCoDskUtilPack V 1.0.10.zip  
http://cococoding.com/cocodskutil/ Thank Aaron Wolfe
My personal blog: http://www.luis45ccs.blogspot.com
---------------------------------------------------------------------------------

> Date: Thu, 22 Mar 2012 13:51:14 +1100
> From: jekent at optusnet.com.au
> To: coco at maltedmedia.com
> Subject: Re: [Coco] question C++
> 
> 
> 
> On 22/03/2012 1:14 PM, Luis Fernández wrote:
> > hi, Thanks
> > but I had understood that address is *val
> > or am I wrong?
> > ---------------------------------------------------------------------------------
> > Making
> > CoCoDskUtilPack V 1.0.10.zip
> > http://cococoding.com/cocodskutil/ Thank Aaron Wolfe
> > My personal blog: http://www.luis45ccs.blogspot.com
> > ---------------------------------------------------------------------------------
> >
> 
> *val is the value at the address of the pointer val.
> 
> double* dptr;
> 
> defines a pointer to a double
> 
> double dval;
> 
> allocates memory for a double
> 
> dptr = &dval;
> 
> assigns the address of dval to dptr
> 
> *dptr = dval;
> 
> puts the value dval in the location pointed to by dptr.
> 
> I hope I have that right.
> 
> John.
> 
> -- 
> http://www.johnkent.com.au
> http://members.optusnet.com.au/jekent
> 
> 
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
 		 	   		  


More information about the Coco mailing list