Print Tester 1
#ifndef _PRINTME_H_ #define _PRINTME_H_ #include <iostream> using std::cout; /* * This class is constructed with an integer, which it * will print surrounded by []. */ class PrintMe { private: int num; // Here is the number. public: // Remember the number. PrintMe(int m) { num = m; } // Print the string. void print() { cout << "[" << num << "]"; } }; #endif