title: Implementing a Deck of Cards in C++
body: <p>So I am trying to create a deck of cards and I am still kind of new to C++ and pointers so I have a few question</p>
  
  <p>So I have <code>Card</code> class with <code>getRank</code>, <code>getSuit</code>, and comparison of two <code>Card</code> objects.
  They way I'm setting the deck is number 1-13 for the rank and 1-4 for the suit. So it's a simple compare by comparing one Card's rank+suit with another card's rank+suit. </p>
  
  <p>So i initialize and declared the two arrays like this:</p>
  
  <pre><code>char Rank[13] = {1,...13};
  char Suit[4] = ...
  </code></pre>
  
  <p>and my methods are like this:</p>
  
  <pre><code>char* getSuit(){ return Suit; }
  char* getRank(){ return Rank; }
  int Comp(Card *card) {
      if (rank+suit &lt; card-&gt;rank+card-&gt;suit)
          return 1;
      else if...
      else ...
  }
  </code></pre>
  
  <p>My question is, is it a bad idea to have a char array since i'm only storing integers? 
  Later on i plan on converting these numbers to output "Three Spade" which is why i used char. </p>
  
  <p>my other question is, does my get methods look right? The get methods, would it be returning the whole array or a index of the array, which is what I want. And am I using '->' correctly?</p>
  
  <p>I still in the drawing process which is why i only have snippets of code</p>