12 static const size_t ARRAY_SIZE = 4;
22 int array[ARRAY_SIZE];
25 pwOut.
printf(
"Please enter a number at each of the following six prompts:\n");
26 for (
int i = 0; i < 6; ++i) {
33 pwOut <<
"I received the following (" << ARRAY_SIZE <<
") values in this order:\n";
35 pwOut <<
" " << buffer.dequeue() <<
"\n";
36 pwOut <<
"The Queue instance only had space for four objects, so you'll notice that\n" 37 <<
"the first two numbers you entered are no longer in the Queue.\n";
A basic first-in, first-out queue implementation. The queue will overwrite itself when the maximum si...
const PropWare::Printer pwOut
Most common use of printing in PropWare applications (not thread safe; see PropWare::pwSyncOut for mu...
void printf(const char fmt[], const T first, const Targs...remaining) const
Similar in functionality to the C-standard function printf.