/* hints1.cpp -- This is how the code for the first homework 
 *               appears in my case, for letters GPI.
 *               Set the compiler to give you as many compile error 
 *               messages as possible. Using g++ say
 *                 g++ -Wall hints1.cpp
 *               and then run a.out.
 * AUTHOR  : Giorgio P. Ingargiola
 * DATE    : 8/25/97
 * HOMEWORK: 1
 */

#include <iostream>
using namespace std;

// Print out the block letter G 
void blockg(void) {
  cout << "gggggg\n"
       << "g    g\n"
       << "g     \n"
       << "g  ggg\n"
       << "g    g\n"
       << "gggggg\n";
}

// Print out the block letter I
void blocki(void) {
  cout << "iiiiii\n"
       << "  ii  \n"
       << "  ii  \n"
       << "  ii  \n"
       << "  ii  \n"
       << "iiiiii\n";
}

// Print out the block letter P
void blockp(void) {
  cout << "pppppp\n"
          "pp   p\n"
          "pp   p\n"
          "pppppp\n"
          "pp\n"
          "ppp\n";   // Did you notice we used "<<" only once?
}

int 
main(void) 
{
  cout << endl;
  blockg();
  cout << endl;
  blockp();
  cout << endl;
  blocki();
  cout << endl;

  return 0;
}
