Logo Search packages:      
Sourcecode: mathwar version File versions  Download package

operators.h File Reference


Detailed Description

Define the binary operators that MathWar understands.

MathWar works with binary operators, such as addition and multiplication. The operators that MathWars understands are defined here.

Author:
Kenneth W. Sodemann <stufflehead@bigfoot.com>
Revision
1.1
Date
2000/10/15 15:36:46

Definition in file operators.h.

Go to the source code of this file.

Enumerations

enum  operator_type { SUBTRACTION = 1, ADDITION, MULTIPLICATION }

Functions

gint operator_result (gint x1, gint x2, operator_type oper)
 Determine what the result of the operation should be.
gchar operator_symbol (operator_type oper)
 Return the symbol associated with the operator.


Generated by  Doxygen 1.6.0   Back to index