// suit.cc  P. Conrad 10/26/05
// test out some code for declaring an array of C strings

#include <iostream>
using namespace std;


int main(void)
{

  const char* suit[4]=
 	  {"Clubs","Diamonds","Hearts","Spades"};

  const char* anotherSuit[]=
 	  {"Clubs","Diamonds","Hearts","Spades"};


    const char* errorSuit= {"Clubs"};

  // ,"Diamonds","Hearts","Spades"} ; // I think this is broken


  cout << "========suit=====\n";

  for (int i=0; i<4; i++)
    cout << suit[i] << endl;

  cout << "========anotherSuit=====\n";

  for (int i=0; i<4; i++)
    cout << anotherSuit[i] << endl;


  cout << "========playing with array of arrays=====\n";

  cout << "suit[3][2] = " << suit[3][2] << endl;
  cout << "suit[2][3] = " << suit[2][3] << endl;
  cout << "suit[1][3] = " << suit[1][3] << endl;

  return 0;

}

