Multiple Assignments in DM - Practical Electron Microscopy and Database - - An Online Book - |
||||||||
Microanalysis | EM Book http://www.globalsino.com/EM/ | ||||||||
================================================================================= | ||||||||
DM as well as C++ allows a very convenient method of assigning many variables the same value, that is,
using multiple assignments in a single statement. For instance, the program below assigns EMx, EMy, and EMz the same value 10 (script file): In professionally written programs, you will often see variables which are assigned a common value using such format.
|
||||||||
================================================================================= | ||||||||
|
||||||||