Practical Electron Microscopy and Database

An Online Book, Second Edition by Dr. Yougui Liao (2006)

Practical Electron Microscopy and Database - An Online Book

Chapter/Index: Introduction | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | Appendix

Mistakes in DM

DM sometimes makes mistakes or provides wrong output as shown in Table 1127.

Table 1127. Examples of DM mistakes or wrong output.

Script Mistake or wrong output

number choice;

if(choice == 1)
{
number a, b; /* activate two integer vars */
a = 1
b = 2
number c = a + b
result ("Sum is " + c + "\n")
}

else
{
result ("Done" + "\n")
}

The script output is "Done", which is wrong since the variable "choice" is actually not given in the script.