Changeset 7416d46a for src/tests/io.c
- Timestamp:
- Jan 30, 2018, 3:54:32 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 633a642
- Parents:
- f792cb8 (diff), 42be3c3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/io.c
rf792cb8 r7416d46a 10 10 // Created On : Wed Mar 2 16:56:02 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Dec 6 23:15:42 201713 // Update Count : 8812 // Last Modified On : Fri Jan 26 15:19:34 2018 13 // Update Count : 100 14 14 // 15 15 … … 17 17 18 18 int main() { 19 char c; // basic types 19 _Bool b; // basic types 20 char c; 20 21 signed char sc; 21 22 unsigned char usc; … … 90 91 91 92 sout | "input bacis types" | endl; 92 in | c | sc | usc // character 93 in | b // boolean 94 | c | sc | usc // character 93 95 | si | usi | i | ui | li | uli | lli | ulli // integral 94 96 | f | d | ld // floating point … … 98 100 99 101 sout | "output basic types" | endl; 100 sout | c | ' ' | sc | ' ' | usc | endl // character 102 sout | b | endl // boolean 103 | c | ' ' | sc | ' ' | usc | endl // character 101 104 | si | usi | i | ui | li | uli | lli | ulli | endl // integral 102 105 | f | d | ld | endl // floating point
Note: See TracChangeset
for help on using the changeset viewer.