Changeset 134b86a for translator/examples/fstream_test.c
- Timestamp:
- Nov 3, 2014, 4:38:08 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 8c17ab0
- Parents:
- 93885663
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/examples/fstream_test.c
r93885663 r134b86a 5 5 #include "fstream.h" 6 6 7 int 8 main() 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; 7 int 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"; 17 14 }
Note: See TracChangeset
for help on using the changeset viewer.