source:
CIVL/mods/dev.civl.com/examples/languageFeatures/assignInput.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 121 bytes | |
| Line | |
|---|---|
| 1 | #include <civlc.cvh> |
| 2 | |
| 3 | $input int N; |
| 4 | |
| 5 | void main(){ |
| 6 | int x = N; |
| 7 | |
| 8 | $assert(x == N); |
| 9 | N = x + 1; |
| 10 | $assert(x+1 == N); |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
