#include <iostream>
using namespace std;
/*
* When using a stack, the locations of variables will differ depending on
* the calling sequence.
*/
void bilgewater(int n)
{
int q = n - 1;
cout << "q is located at " << (void *)&q << endl;
if(q > 0) bilgewater(q);
cout << "q at " << (void *)&q << " ceases to be." << endl;
}
void dimwaddle(double pct)
{
int q = 19837;
cout << pct << " of " << q << " is " << q*pct/100.0 << endl;
bilgewater(1);
}
main()
{
bilgewater(1);
dimwaddle(35.9);
bilgewater(2);
}