// ***************************************************************** // Author: Zhixiang Chen // Class: CSCI/CMPE 1170, Spring 2009 // Lab 22: Header file for Lab 22 // Date: January 12, 2009 // Comment: The code here is meant to be revised. // ***************************************************************** #include #include #include #include #include using namespace std; #ifndef LAB_22_HEAD_H #define LAB_22_HEAD_H /*********************************************************************** This function generates SIZE many integers in the range of 0 and 9999 and loads these random integer to the list ***********************************************************************/ void loadList(int list[], const int SIZE) { unsigned seed; //get a random seed cout<<"Enter a random seed => "; cin>>seed; srand(seed); //generate random numbers and load them to the list for (int i=0; i