source: translator/examples/fstream_test.c @ a0d9f94

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since a0d9f94 was 51b7345, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

initial commit

  • Property mode set to 100644
File size: 387 bytes
Line 
1// "cfa -c -o fstream_test.o fstream_test.c"
2// "cfa -CFA fstream_test.c > fstream_test_out.c"
3// "gcc31 -c fstream_test_out.c"
4
5#include "fstream.h"
6
7int
8main()
9{
10  ofstream *sout = ofstream_stdout();
11  ifstream *sin = ifstream_stdin();
12  int nombre;
13  sout << "Appuyez un nombre, s'il vous plâit:\n";
14  sin >> &nombre;
15  sout << "Vous avez appuyé: " << nombre << "\n";
16  return 0;
17}
Note: See TracBrowser for help on using the repository browser.