Write a function named copy_arr(source, target, length) to copy the contents of an array-of-double to another array.
Write another function named sort(array, length) to sort the array passed by parameter in descending order.(降序排序,从大到小)
Write a main() function that initializes the array-of-double and then call copy_arr() to make the copy, and show all the element-values of the copied array . Then call the sort() function , and show all the element-values of the sorted array.
Using the following main() function for test your functions.
//main(),不要修改
int main(){
double source[5] = {1.1, 2.2, 3.3., 4.4, 5.5};
double target [5];
copy_arr(source, target, 5);
display_array(target, 5);
sort(target, 5);
display_array(source, 5);//for comparing
display_array(target, 5);
}