/*使用递归方法求一个数组的最小值.*/ #include <iostream> #include <time.h> using namespace std; void main(){ srand((unsigned)time(NULL));//the seed of the random number. for(int i=0;i<10;i++){ cout<<rand()<<" "; } }