?? maximumvalue.c
字號:
// ****************************************************************
// Description: Library function to determine the
// maximum value within a integer array. Note this code stresses
// simplicity over robustness and efficiency.
// ****************************************************************
int maximumValue( int [], int);
// Requires: array_size equals the number of elements in the array, array_size > 0
// Returns: The maximum value contained in the integer array
int maximumValue( int values[], int array_size)
{
int maximum_value;
int i = 0;
maximum_value = values[0];
for (i = 0; i < array_size; i++) {
if (values[i] > maximum_value)
maximum_value = values[i];
}
return maximum_value;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -