Ignore:
Timestamp:
Nov 3, 2014, 4:38:08 PM (10 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
Message:

add compiler flag to driver, update examples, fix unnamed bit fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • translator/examples/fstream_test.c

    r93885663 r134b86a  
    55#include "fstream.h"
    66
    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;
     7int 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";
    1714}
Note: See TracChangeset for help on using the changeset viewer.