| 175 | return (float)Sum()/length; |
| 176 | } |
| 177 | void Array::Reverse() |
| 178 | { |
| 179 | int *B; |
| 180 | int i,j; |
| 181 | for(i=length-1,j=0;i>=0;i--,j++) |
| 182 | B[j]=A[i]; |
| 183 | for(i=0;i<length;i++) |
| 184 | A[i]=B[i]; |
| 185 | |
| 186 | } |
| 187 | void Array::Reverse2() |
| 188 | { |
| 189 | int i,j; |
nothing calls this directly
no outgoing calls
no test coverage detected