structure assignment, why you would want to do it

RANDY S WELCH rwelch at diana.cair.du.edu
Mon Aug 27 15:01:23 AEST 1990


In article <1096.26d52ea3 at desire.wright.edu> demon at desire.wright.edu writes:
[ lots of stuff deleted]

  Thanx!  Everyone wondered why I asked it.  If you are doing
  transformations/similar math stuff or (like I'm doing) vehicle position updates
  for a military simulation, you'd like to be able to say

   pres_location += current_move;

C++ lets you do things like this with structures.  Granted you have to
define the +=, etc operation for it...

-- 
Randy Welch   Mail to :  ...!ncar!scicom!bldr!randy or rwelch at du.edu
Boulder, CO   VOICE   :  303-442-6717
"Unfortunately, life contains an unavoidable element of unpredictability"
-David Lynch "The Angriest Dog in the World"



More information about the Comp.lang.c mailing list