ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
gc_noraii
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
string
with_gc
Last change
on this file since 1ead581 was 134b86a, checked in by Peter A. Buhr <pabuhr@…>, 11 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 |
|
---|
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";
|
---|
14 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.