source:
CIVL/examples/languageFeatures/choose.cvl@
d6665ab
| Last change on this file since d6665ab was 793cfc2, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 181 bytes | |
| Line | |
|---|---|
| 1 | #include<civlc.h> |
| 2 | |
| 3 | int n = 2; |
| 4 | float x; |
| 5 | |
| 6 | void main() { |
| 7 | l1: |
| 8 | $choose { |
| 9 | $when (n>2) { x=2; goto l2; } |
| 10 | $when (n>1) { x=1; goto l2; } |
| 11 | default: {x=0; goto l2; } |
| 12 | } |
| 13 | l2: ; |
| 14 | } |
| 15 |
Note:
See TracBrowser
for help on using the repository browser.
