Changeset d11f789 for translator/examples/vector_test.c
- Timestamp:
- Nov 24, 2014, 4:47:21 PM (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, string, with_gc
- Children:
- 42dcae7
- Parents:
- ea3eb06
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/examples/vector_test.c
rea3eb06 rd11f789 12 12 int num; 13 13 14 sout << "enter N elements and C-d on a separate line:\n"; 14 15 for ( ;; ) { 15 16 sin >> # … … 17 18 append( &vec, num ); 18 19 } 19 20 20 // write out the numbers 21 21 … … 23 23 // write_all( begin( vec ), end( vec ), sout ); 24 24 sout << "\n"; 25 #if 0 25 26 write_reverse( begin( vec ), end( vec ), sout ); 26 27 sout << "\n"; 27 28 29 #endif 28 30 for ( int index = 0; index <= last( vec ); index += 1 ) { 29 31 sout << vec[ index ] << " ";
Note: See TracChangeset
for help on using the changeset viewer.