Changeset d41280e for src/examples/quad.c
- Timestamp:
- Feb 8, 2016, 10:07:42 AM (10 years ago)
- 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, with_gc
- Children:
- c44e622
- Parents:
- 00ede9e (diff), bd85400 (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/examples/quad.c
r00ede9e rd41280e 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed May 27 18:26:36 201513 // Update Count : 212 // Last Modified On : Tue Jan 26 17:13:48 2016 13 // Update Count : 5 14 14 // 15 15 16 extern "C" { 17 #include <stdio.h> 18 } 16 #include <fstream> 19 17 20 18 forall( type T | { T ?*?( T, T ); } ) … … 29 27 30 28 int main() { 29 ofstream *sout = ofstream_stdout(); 31 30 int N = 2; 32 printf( "result of quad of %d is %d\n", N, quad( N ) );31 sout | "result of quad of " | N | " is " | quad( N ) | endl; 33 32 } 34 33
Note:
See TracChangeset
for help on using the changeset viewer.