source:
CIVL/examples/choose.cvl@
844ebd8
| Last change on this file since 844ebd8 was 59b5362, checked in by , 14 years ago | |
|---|---|
|
|
| File size: 159 bytes | |
| Rev | Line | |
|---|---|---|
| [34760dc] | 1 | |
| 2 | int n; | |
| 3 | float x; | |
| 4 | ||
| 5 | void main() { | |
| 6 | l1: | |
| [59b5362] | 7 | \choose { |
| 8 | \when (n>2) { x=2; goto l2; } | |
| 9 | \when (n>1) { x=1; goto l2; } | |
| [34760dc] | 10 | default: {x=0; goto l2; } |
| 11 | } | |
| 12 | l2: ; | |
| 13 | } | |
| [59b5362] | 14 |
Note:
See TracBrowser
for help on using the repository browser.
