source: examples/zero_one.c @ ba80f99

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resnenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since ba80f99 was 73abe95, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

Replace extension-less headers with .hfa

  • Property mode set to 100644
File size: 239 bytes
RevLine 
[73abe95]1#include <fstream.hfa>
[148f7290]2
3void foo(zero_t o)
4{
5        sout | "It's a Zero!" | endl;
6}
7
8void foo(one_t o)
9{
10        sout | "It's a One!" | endl;
11}
12
13void foo(int o)
14{
15        sout | "It's a Number!" | endl;
16}
17
[73abe95]18int 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.