Changeset 6b6597c for src/examples


Ignore:
Timestamp:
Apr 19, 2016, 9:36:29 PM (8 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:
0cb1d61, 6e991d6
Parents:
09d1ad0
Message:

user manual updates, extend I/O test, fix memset in stdlib, workaround for fstream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/examples/io.c

    r09d1ad0 r6b6597c  
    1111// Created On       : Wed Mar  2 16:56:02 2016
    1212// Last Modified By : Peter A. Buhr
    13 // Last Modified On : Wed Apr  6 14:58:27 2016
    14 // Update Count     : 15
     13// Last Modified On : Wed Apr 13 23:03:14 2016
     14// Update Count     : 22
    1515//
    1616
     
    3636
    3737        ifstream in;                                                                                            // create / open file
    38         open( &in, "input.data", "r" );
     38        open( &in, "io.data", "r" );
    3939
    4040        &in | &c                                                                                                        // character
     
    5959                 | fc | dc | ldc | endl                                                                 // complex without separator
    6060                 | s1 | s2 | endl;
     61        sout | endl;
     62        sepSet( sout, " " );
     63
     64        sout
     65                // opening delimiters
     66                | "v(" | 27
     67                | "v[" | 27
     68                | "v{" | 27
     69                | "$" | 27
     70                | "£" | 27
     71                | "¥" | 27
     72                | "¿" | 27
     73                | "«" | 27
     74                | endl
     75                // closing delimiters
     76                | 25 | ","
     77                | 25 | "."
     78                | 25 | ":"
     79                | 25 | ";"
     80                | 25 | "!"
     81                | 25 | "?"
     82                | 25 | ")"
     83                | 25 | "]"
     84                | 25 | "}"
     85                | 25 | "%"
     86                | 25 | "¢"
     87                | 25 | "»"
     88                | endl
     89                // opening-closing delimiters
     90                | 25 | "'" | 27
     91                | 25 | "`" | 27
     92                | 25 | "\"" | 27
     93                | 25 | "\f" | 27
     94                | 25 | "\n" | 27
     95                | 25 | "\r" | 27
     96                | 25 | "\t" | 27
     97                | 25 | "\v" | 27
     98                | endl;
    6199}
    62100
Note: See TracChangeset for help on using the changeset viewer.