- Timestamp:
- May 19, 2019, 6:29:02 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 0588d8c, 19e567dd, 933f32f, d148778, e63326b
- Parents:
- b2ac656
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/sum.cfa
rb2ac656 r292642a 11 11 // Created On : Wed May 27 17:56:53 2015 12 12 // Last Modified By : Peter A. Buhr 13 // Last Modified On : Wed Feb 20 08:32:46201914 // Update Count : 3 2913 // Last Modified On : Sun May 19 11:21:02 2019 14 // Update Count : 330 15 15 // 16 16 … … 29 29 T sum( size_t size, T a[] ) { 30 30 T total = 0; // initialize by 0 constructor 31 for ( size_t i = 0; i < size; i += 1)31 for ( i; size ) 32 32 total += a[i]; // select appropriate + 33 33 return total;
Note: See TracChangeset
for help on using the changeset viewer.