/* testsearch1.cpp CIS 150 David Klick 6/28/05 Demonstration of linear search. */ #include #include #include using std::cout; const int ARRAY_SIZE = 10; int lsearch(int n[], int len, int key); int main(void) { int nums[ARRAY_SIZE]; int i, val, pos; // randomize random number generator srand(time(NULL)); // fill array up with random ints (0-99) for (i=0; i