ADT
arm-eh
ast-experimental
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
pthread-emulation
qualifiedEnum
Last change
on this file since 6f096d2 was 200fcb3, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago |
add auto newline to sout, change endl to nl
|
-
Property mode
set to
100644
|
File size:
218 bytes
|
Line | |
---|
1 | #include <fstream.hfa>
|
---|
2 |
|
---|
3 | void foo(zero_t o)
|
---|
4 | {
|
---|
5 | sout | "It's a Zero!";
|
---|
6 | }
|
---|
7 |
|
---|
8 | void foo(one_t o)
|
---|
9 | {
|
---|
10 | sout | "It's a One!";
|
---|
11 | }
|
---|
12 |
|
---|
13 | void foo(int o)
|
---|
14 | {
|
---|
15 | sout | "It's a Number!";
|
---|
16 | }
|
---|
17 |
|
---|
18 | int main()
|
---|
19 | {
|
---|
20 | foo(0);
|
---|
21 | foo(1);
|
---|
22 | foo(2);
|
---|
23 | return 0;
|
---|
24 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.