Changeset c7015e6b


Ignore:
Timestamp:
Apr 27, 2021, 10:16:43 PM (7 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
00e9be9, adaee12
Parents:
cbedb61
Message:

renaming, comment out non-working istrstream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/strstream.cfa

    rcbedb61 rc7015e6b  
    55    enum { size = 256 };
    66    char buf[size];
    7     strstream sstr = { buf, size };
     7    ostrstream osstr = { buf, size };
    88    int i = 3, j = 5, k = 7;
    99    double x = 12345678.9, y = 98765.4321e-11;
    1010
    11     sstr | i | hex(j) | wd(10, k) | sci(x) | unit(eng(y));
    12     write( sstr );
     11    osstr | i | hex(j) | wd(10, k) | sci(x) | unit(eng(y));
     12    write( osstr );
    1313    printf( "%s", buf );
    1414    sout | i | hex(j) | wd(10, k) | sci(x) | unit(eng(y));
     15
     16    // char buf2[] = "12 14 15 3.5 7e4";
     17    // istrstream isstr = { buf2 };
     18    // isstr | i | j | k | x | y;
     19    // sout | i | j | k | x | y;
    1520}
Note: See TracChangeset for help on using the changeset viewer.