Changeset 5ea5b28 for tests/searchsort.cfa
- Timestamp:
- Dec 22, 2018, 11:19:24 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- bd07b15
- Parents:
- 760235a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/searchsort.cfa
r760235a r5ea5b28 10 10 // Created On : Thu Feb 4 18:17:50 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Dec 5 08:18:42201813 // Update Count : 10 612 // Last Modified On : Thu Dec 20 22:49:46 2018 13 // Update Count : 108 14 14 // 15 15 … … 30 30 sout | iarr[i] | ", "; 31 31 } // for 32 sout | nl ;32 sout | nl | nl; 33 33 34 34 // ascending sort/search by changing < to > … … 54 54 sout | size - i | ':' | iarr[posn] | ", "; 55 55 } // for 56 sout | nl ;56 sout | nl | nl; 57 57 58 58 // descending sort/search by changing < to > … … 84 84 } // for 85 85 } 86 sout | nl ;86 sout | nl | nl; 87 87 88 88 double darr[size]; … … 106 106 sout | size - i + 0.5 | ':' | darr[posn] | ", "; 107 107 } // for 108 sout | nl ;108 sout | nl | nl; 109 109 110 110 struct S { int i, j; } sarr[size]; … … 133 133 sout | temp | ':' | sarr[posn] | ", "; 134 134 } // for 135 sout | nl ;135 sout | nl | nl; 136 136 { 137 137 int getKey( const S & s ) { return s.j; } … … 149 149 sout | size - i + 1 | ':' | sarr[posn] | ", "; 150 150 } // for 151 sout | nl ;151 sout | nl | nl; 152 152 } 153 153 } // main
Note: See TracChangeset
for help on using the changeset viewer.