// // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // fstream_test.c -- // // Author : Richard C. Bilson // Created On : Wed May 27 17:56:53 2015 // Last Modified By : Peter A. Buhr // Last Modified On : Wed May 27 18:13:43 2015 // Update Count : 2 // #include "fstream.h" int main() { ofstream *sout = ofstream_stdout(); ifstream *sin = ifstream_stdin(); int nombre; sout << "Appuyez un nombre, s'il vous plâit:\n"; sin >> &nombre; sout << "Vous avez appuyé: " << nombre << "\n"; } // Local Variables: // // tab-width: 4 // // compile-command: "cfa fstream_test.c" // // End: //