source:
examples/zero_one.c@
0a945fd
      
      | Last change on this file since 0a945fd was 200fcb3, checked in by , 7 years ago | |
|---|---|
| 
 | |
| File size: 218 bytes | |
| Rev | Line | |
|---|---|---|
| [73abe95] | 1 | #include <fstream.hfa> | 
| [148f7290] | 2 | |
| 3 | void foo(zero_t o) | |
| 4 | { | |
| [200fcb3] | 5 | sout | "It's a Zero!"; | 
| [148f7290] | 6 | } | 
| 7 | ||
| 8 | void foo(one_t o) | |
| 9 | { | |
| [200fcb3] | 10 | sout | "It's a One!"; | 
| [148f7290] | 11 | } | 
| 12 | ||
| 13 | void foo(int o) | |
| 14 | { | |
| [200fcb3] | 15 | sout | "It's a Number!"; | 
| [148f7290] | 16 | } | 
| 17 | ||
| [73abe95] | 18 | int main() | 
| [148f7290] | 19 | { | 
| 20 | foo(0); | |
| 21 | foo(1); | |
| 22 | foo(2); | |
| 23 | return 0; | |
| 24 | } | 
  Note:
 See   TracBrowser
 for help on using the repository browser.
    