please help the following (in C or C+)# JobHunting - 待字闺中
n*c
1 楼
I was asked the following?
Complete the body of the following function:
/** Return the index in array data of the element closest to or
equal to value. The array data has exactly data_count
elements. */
size_t find_nearest (int value, const int* data, size_t data_count);
Any quick code? thanks a lot
Complete the body of the following function:
/** Return the index in array data of the element closest to or
equal to value. The array data has exactly data_count
elements. */
size_t find_nearest (int value, const int* data, size_t data_count);
Any quick code? thanks a lot