Changes in src/examples/hello.c [86bd7c1f:90c3b1c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/examples/hello.c
r86bd7c1f r90c3b1c 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed May 27 18:14:58 201513 // Update Count : 1 12 // Last Modified On : Mon Feb 29 18:06:17 2016 13 // Update Count : 10 14 14 // 15 15 16 #include "fstream.h"16 #include <fstream> 17 17 18 18 int main() { 19 ofstream *sout = ofstream_stdout(); 20 ifstream *sin = ifstream_stdin(); 21 sout << "Bonjour au monde!\n"; 22 sout << 3 << " " << 3.5 << " " << 'a' << " " << "abc" << "\n"; 23 int i, j, k; 24 sin >> &i >> &j >> &k; 25 sout << "i:" << i << " j:" << j << " k:" << k << "\n"; 19 sout | "Bonjour au monde!" | endl; 26 20 } 27 21 28 22 // Local Variables: // 29 23 // tab-width: 4 // 30 // compile-command: "cfa hello.c fstream.o iostream.o" //24 // compile-command: "cfa hello.c" // 31 25 // End: //
Note:
See TracChangeset
for help on using the changeset viewer.