81
Chapter 8: C Programming
Example
: In the following program, if x is greater than 30, the words “X is big” will print. If
x is not greater than 30, the words “X is small” will print. In either case, “All done” will always
print.
int x;
main()
{
x=23;
if (x>30)
{
puts(“X is big\n”);
}
else
{
puts(“X is small\n”);
}
puts(“All done\n”);
}
There are C commands other than “if ” and “else”, and built in variables to access ISACC’s
inputs and outputs. Details for these will be covered later.
Содержание Sensaphone ISACC
Страница 1: ...Sensaphone ISACC Operator s Manual version 3 49...
Страница 22: ...22 Sensaphone ISACC Instruction Manual...
Страница 52: ...52 Sensaphone ISACC Instruction Manual...
Страница 76: ...76 Sensaphone ISACC Instruction Manual...
Страница 114: ...114 Sensaphone ISACC Instruction Manual...
Страница 120: ...120 Sensaphone ISACC Instruction Manual...
Страница 124: ...124 Sensaphone ISACC Instruction Manual...
Страница 130: ...130 Sensaphone ISACC Instruction Manual...
Страница 132: ...132 Sensaphone ISACC Instruction Manual...
Страница 140: ...140 Sensaphone ISACC Instruction Manual...
Страница 142: ...142 Sensaphone ISACC Instruction Manual...