title: How to declare and initialize an array of strings within a class?
body: <p>I am trying to declare an array of strings representing suits in a deck of cards in my header file and initialize it in my implementation file. I have tried <code>initializer_list</code> as well as tried to initialize it within my constructor, but nothing worked. I finally came across this link <a href="https://stackoverflow.com/questions/6536805/initializing-a-static-const-array-of-const-strings-in-c">Initializing a static const array of const strings in C++</a>, but I don't understand why this works and the previous methods do not.</p>
  
  <p>Why is <code>char</code> used here</p>
  
  <pre><code>static const char * const days[]
  </code></pre>
  
  <p>instead of <code>string</code>? Why is a pointer being used?</p>
  
  <p>I am confused why I simply cannot declare and initialize the array in my header file as well.</p>