/* * CS 161-020, Lecture 19, Winter 2020 * Dynamic arrays * Author: Kiri Wagstaff * Date: February 19, 2020 */ #include #include /* include to allow rand() to be used */ #include /* include to allow time() to be used */ using namespace std; /* Custom print function to report yield per field */ void print_yield(const int* y, const int n) { for (int i=0; i