Compound Assignment in DM - Practical Electron Microscopy and Database - - An Online Book - |
||||||||
Microanalysis | EM Book http://www.globalsino.com/EM/ | ||||||||
================================================================================= | ||||||||
DM based on C++ has a special shorthand called compound assignment that combines an assignment
with another operation. For instance, This can be written using a compound assignment as, The operator pair += tells the DM compiler to assign to x the value of x plus 10. The compound assignment simplifies the coding of a certain type of assignment statement. Here is another example,
|
||||||||
================================================================================= | ||||||||
|
||||||||