#include <iostream>
#include "stonewt.h"
void display(const Stonewt & st, int n);
int main(void) {
Stonewt pavarotti = 260;
Stonewt wolfe(285.7);
Stonewt taft(21, 8);
std::cout << "The tenor weighed ";
pavarotti.show_stn();
std::cout << "The detective weighted ";
wolfe.show_stn();
std::cout << "The President weighted ";
taft.show_lbs();
pavarotti = 265.8;
taft = 325;
std::cout << "After dinner, the tenor weighted ";
pavarotti.show_stn();
std::cout << "After dinner, the President weighed ";
taft.show_lbs();
display(taft, 2);
std::cout << "The wrestler weighed even more.\n";
display(422, 2);
std::cout << "No stone left unearned\n";
return 0;
}
void display(const Stonewt & st, int n) {
for (int i = 0; i < n; ++i) {
std::cout << "Wow! ";
st.show_stn();
}
}