source: translator/examples/fstream_test.c @ 134b86a

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 134b86a was 134b86a, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

add compiler flag to driver, update examples, fix unnamed bit fields

  • 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 main() {
8    ofstream *sout = ofstream_stdout();
9    ifstream *sin = ifstream_stdin();
10    int nombre;
11    sout << "Appuyez un nombre, s'il vous plâit:\n";
12    sin >> &nombre;
13    sout << "Vous avez appuyé: " << nombre << "\n";
14}
Note: See TracBrowser for help on using the repository browser.