- Euphoria Tutorial
- Euphoria - Home
- Euphoria - Overview
- Euphoria - Environment
- Euphoria - Basic Syntax
- Euphoria - Variables
- Euphoria - Constants
- Euphoria - Data Types
- Euphoria - Operators
- Euphoria - Branching
- Euphoria - Loop Types
- Euphoria - Flow Control
- Euphoria - Short Circuit
- Euphoria - Sequences
- Euphoria - Date & Time
- Euphoria - Procedures
- Euphoria - Functions
- Euphoria - Files I/O
- Euphoria Useful Resources
- Euphoria - Quick Guide
- Euphoria - Library Routines
- Euphoria - Useful Resources
- Euphoria - Discussion
Euphoria - 关系运算符
以下简单的示例程序演示了关系运算符。将以下 Euphoria 程序复制并粘贴到 test.ex 文件中并运行该程序 -
#!/home/euphoria-4.0b2/bin/eui integer a = 10 integer b = 20 printf(1, "a = b = %d\n", (a = b) ) printf(1, "a != b = %d\n", (a != b) ) printf(1, "a > b = %d\n", (a > b) ) printf(1, "a < b = %d\n", (a < b) ) printf(1, "b >= a = %d\n", (b >= a) ) printf(1, "b <= a = %d\n", (b <= a) )
这将产生以下结果。这里0代表假,1代表真。
a = b = 0 a != b = 1 a > b = 0 a < b = 1 b >= a = 1 b <= a = 0
euphoria_operators.htm