title: VS 2017 is telling me I am trying to convert variables but I am not
body: <p>I am trying to set up a function that takes a few arrays to build a deck of cards from a private section in a class. The function is still in the same class but it is in the public section. However Visual Studio debugger is telling me that there is no suitable function to convert string to char. I do not have any char variables in my code nor am i trying to convert it. Both arrays are strings.</p>
  
  <p>It was originally a 2d array going into a 1d array but I changed that to 2 separate arrays to see if that worked but its still telling me I am trying to convert.</p>
  
  <pre><code>class Cards {
  private:
  
  string deckcontents[13]{"A","2","3","4","5","6","7","8","9","10","J","K","Q"};
  string cardshape[4]{ "H", "S", "D", "C" };
  string deck[52]{};
  
  public:
  
  int generaterandcardnum() {
      int num1 = NULL;
      for (int i = 0; i &lt; 13; i++) {
          num1 = rand() % 10;
      }
      return num1;
  }
  
  int generaterandcardsuit() {
      int num2 = NULL;
      for (int i = 0; i &lt; 4; i++) {
          num2 = rand() % 10;
      }
      return num2;
  }
  
  void builddeck(string cards)
  {
      int cardnum = generaterandcardnum();
      int cardsuit = generaterandcardsuit();
      string card = deckcontents[cardnum] + cardshape[cardsuit];
      int j = 0;
      for (int i = 0; i &lt; 4; i++) {
          for (int k = 0; k &lt; 13; k++) {
                          //This is where the problem lies
              cards[j] = card;
  
                          //.cpp(58): error C2440: '=': cannot convert from 'std::string' to 'char'
  
              j = j + 1;
          }
  
      }
      return;
  }
  };
  </code></pre>