Last change
on this file since 94aa202 was
eae8b37,
checked in by JiadaL <j82liang@…>, 2 weeks ago
|
Move enum.hfa/enum.cfa to prelude
|
-
Property mode set to
100644
|
File size:
330 bytes
|
Line | |
---|
1 | #include <fstream.hfa> |
---|
2 | |
---|
3 | int main() { |
---|
4 | enum(int) E { BBB = 3, AAA, AA, AB, B, CB, AC }; |
---|
5 | E e; |
---|
6 | |
---|
7 | try { |
---|
8 | for () { |
---|
9 | try { |
---|
10 | sin | e; |
---|
11 | } catch( missing_data * ) { |
---|
12 | sout | "missing data"; |
---|
13 | continue; // try again |
---|
14 | } // try |
---|
15 | sout | e | "= " | value( e ); |
---|
16 | } // for |
---|
17 | } catch( end_of_file * ) { |
---|
18 | } // try |
---|
19 | } // main |
---|
Note: See
TracBrowser
for help on using the repository browser.