Last change
on this file since 6e6e372 was eae8b37, checked in by JiadaL <j82liang@…>, 10 months ago |
Move enum.hfa/enum.cfa to prelude
|
-
Property mode
set to
100644
|
File size:
477 bytes
|
Line | |
---|
1 | #include <fstream.hfa>
|
---|
2 |
|
---|
3 | enum(int) IntEnum {
|
---|
4 | zero,
|
---|
5 | one,
|
---|
6 | thousand = 1000,
|
---|
7 | thousand_one,
|
---|
8 | two_thousand = 2000,
|
---|
9 | two_thousand_one,
|
---|
10 | two_thousand_two
|
---|
11 | };
|
---|
12 |
|
---|
13 | int main() {
|
---|
14 | sout | "0=" | value(zero);
|
---|
15 | sout | "1=" | value(one);
|
---|
16 | sout | "1000=" | value(thousand);
|
---|
17 | sout | "1001=" | value(thousand_one);
|
---|
18 | sout | "2000=" | value(two_thousand);
|
---|
19 | sout | "2001=" | value(two_thousand_one);
|
---|
20 | sout | "2002=" | value(two_thousand_two);
|
---|
21 | return 0;
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.