实现代码
#include
#include
#define N 10
//12 33 24 23 55 34 45 33 21 34
int max_value(int arr[], int *sec_max)
{
int i;
int max;
int size = N;
max = arr[0];
*sec_max = arr[0];
f
对于InputStream的 read(b, off, len) 方法 public int read(byte[] b, int off, int len) throws IOException,Javadoc的说明为:
If len is zero, then no bytes are read and 0 is returned