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 c8ffe20b 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:
429 bytes
|
| Line | |
|---|
| 1 | // "cfa hello.c fstream.c iostream.o"
|
|---|
| 2 | // "cfa -CFA hello.c > hello.i"
|
|---|
| 3 | // "cfa hello.i fstream.i iostream.o"
|
|---|
| 4 |
|
|---|
| 5 | #include "fstream.h"
|
|---|
| 6 |
|
|---|
| 7 | int main() {
|
|---|
| 8 | ofstream *sout = ofstream_stdout();
|
|---|
| 9 | ifstream *sin = ifstream_stdin();
|
|---|
| 10 | sout << "Bonjour au monde!\n";
|
|---|
| 11 | sout << 3 << " " << 3.5 << " " << 'a' << " " << "abc" << "\n";
|
|---|
| 12 | int i, j, k;
|
|---|
| 13 | sin >> &i >> &j >> &k;
|
|---|
| 14 | sout << "i:" << i << " j:" << j << " k:" << k << "\n";
|
|---|
| 15 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.