ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
with_gc
|
Last change
on this file since 9c32e21 was ef3403c6, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago |
|
reduce test time
|
-
Property mode
set to
100644
|
|
File size:
1.5 KB
|
| Rev | Line | |
|---|
| [ef3403c6] | 1 | //
|
|---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
|
|---|
| 3 | //
|
|---|
| 4 | // The contents of this file are covered under the licence agreement in the
|
|---|
| 5 | // file "LICENCE" distributed with Cforall.
|
|---|
| 6 | //
|
|---|
| 7 | // io1.c --
|
|---|
| 8 | //
|
|---|
| 9 | // Author : Peter A. Buhr
|
|---|
| 10 | // Created On : Wed Mar 2 16:56:02 2016
|
|---|
| 11 | // Last Modified By : Peter A. Buhr
|
|---|
| 12 | // Last Modified On : Thu May 24 21:17:56 2018
|
|---|
| 13 | // Update Count : 104
|
|---|
| 14 | //
|
|---|
| 15 |
|
|---|
| 16 | #include <fstream>
|
|---|
| 17 |
|
|---|
| 18 | int main() {
|
|---|
| 19 | int x = 3, y = 5, z = 7;
|
|---|
| 20 | sout | x * 3 | y + 1 | z << 2 | x == y | (x | y) | (x || y) | (x > z ? 1 : 2) | endl;
|
|---|
| 21 | sout | 1 | 2 | 3 | endl;
|
|---|
| 22 | sout | '1' | '2' | '3' | endl;
|
|---|
| 23 | sout | 1 | "" | 2 | "" | 3 | endl;
|
|---|
| 24 | sout | endl;
|
|---|
| 25 |
|
|---|
| 26 | sout | "opening delimiters" | endl;
|
|---|
| 27 | sout
|
|---|
| 28 | | "x (" | 1
|
|---|
| 29 | | "x [" | 2
|
|---|
| 30 | | "x {" | 3
|
|---|
| 31 | | "x =" | 4
|
|---|
| 32 | | "x $" | 5
|
|---|
| 33 | | "x £" | 6
|
|---|
| 34 | | "x ¥" | 7
|
|---|
| 35 | | "x ¡" | 8
|
|---|
| 36 | | "x ¿" | 9
|
|---|
| 37 | | "x «" | 10
|
|---|
| 38 | | endl | endl;
|
|---|
| 39 |
|
|---|
| 40 | sout | "closing delimiters" | endl;
|
|---|
| 41 | sout
|
|---|
| 42 | | 1 | ", x"
|
|---|
| 43 | | 2 | ". x"
|
|---|
| 44 | | 3 | "; x"
|
|---|
| 45 | | 4 | "! x"
|
|---|
| 46 | | 5 | "? x"
|
|---|
| 47 | | 6 | "% x"
|
|---|
| 48 | | 7 | "¢ x"
|
|---|
| 49 | | 8 | "» x"
|
|---|
| 50 | | 9 | ") x"
|
|---|
| 51 | | 10 | "] x"
|
|---|
| 52 | | 11 | "} x"
|
|---|
| 53 | | endl | endl;
|
|---|
| 54 |
|
|---|
| 55 | sout | "opening/closing delimiters" | endl;
|
|---|
| 56 | sout
|
|---|
| 57 | | "x`" | 1 | "`x'" | 2
|
|---|
| 58 | | "'x\"" | 3 | "\"x:" | 4
|
|---|
| 59 | | ":x " | 5 | " x\t" | 6
|
|---|
| 60 | | "\tx\f" | 7 | "\fx\v" | 8
|
|---|
| 61 | | "\vx\n" | 9 | "\nx\r" | 10
|
|---|
| 62 | | "\rx"
|
|---|
| 63 | | endl | endl;
|
|---|
| 64 |
|
|---|
| 65 | sout | "override opening/closing delimiters" | endl;
|
|---|
| 66 | sout | "x ( " | 1 | " ) x" | 2 | " , x" | 3 | " :x: " | 4 | endl;
|
|---|
| 67 | sout | endl;
|
|---|
| 68 | }
|
|---|
| 69 |
|
|---|
| 70 | // Local Variables: //
|
|---|
| 71 | // tab-width: 4 //
|
|---|
| 72 | // compile-command: "cfa io1.c" //
|
|---|
| 73 | // End: //
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.