/* * bhutan.C -- ECS 110 PR * * Program to count minimum number of strange-valued * coins to make change. * * Shows memoization. * * */ #include const c1 = 1, c2 = 3, c3=8, c4=17; // Values of the four kinds of coins const huge = 0x7fffffff; int min(int a, int b, int c=huge, int d=huge) { int r = a> cents; cout << "Can make " << cents << " using " << NCoins(cents) << " coins\n"; return 0; }