#ifndef _PRINTMULT_H_
#define _PRINTMULT_H_
#include <iostream>
/*
* This class is constructed with an integer, which it
* will print repeatedly surrounded by [].
*/
class PrintMeLots: public PrintMe {
private:
int count; // Here is the repeat count.
public:
// Remember the number.
PrintMeLots(int num, int cnt): PrintMe(num) {
count = cnt;
}
// Print the string.
void print() {
for(int m = count; m > 0; m--)
PrintMe::print();
}
};
#endif