title: convert char* to char? c++
body: <p>I figured this question had been asked a million times but I can't find the answer anywhere. Should be simple. Ok so I have a struct in my .h file:</p>
  
  <pre><code>struct question{
      string programNum;
      string programDesc;
      string programPoints;
      string programInput;
      char programQuestion;
  };
  </code></pre>
  
  <p>And then I have function initiated in the .h and arguments in .cpp:</p>
  
  <pre><code>void setQuestionFileName(question q, char fileName){
      q.programQuestion = fileName;
  
  }
  </code></pre>
  
  <p>Ok all is well so far. Now in main I have the issue of trying to store argv[1] in programQuestion:</p>
  
  <pre><code>char* fileName = argv[count+1];
  </code></pre>
  
  <p>followed by:</p>
  
  <pre><code>setQuestionFileName(questions[count],fileName);
  cout &lt;&lt; questions[count].programQuestion &lt;&lt; endl;
  </code></pre>
  
  <p>I'm not real good with pointers so if anyone could help me store the char* argv into the char questions[count].programQuestion that would be amazing. Thank you!</p>