//vector#include#include #include using namespace std;void func1(int array[], int n,int &max,int&min){ max = array[0]; min = array[0]; // for(int i = 0;i array[i]) min = array[i]; }}//C++向量的方式求解void func2(vector ::iterator iter){ for (int i = 0;i<10;i++) { cout<<*iter<<' '; iter++; } }void main(){ //vector ivec; const int n = 10; int max,min; int a[n]; srand(time(0)); for(int i = 0;i