title: Assign variable wstring to Char array in C++
body: <p>I have char array as follows:</p>
  
  <pre><code>TCHAR name[256] = L"abc";
  </code></pre>
  
  <p>Also I have another wstring vector as follows,</p>
  
  <pre><code>std::vector&lt;std::wstring&gt; nameList;
  nameList.push_back(L"cde");
  nameList.push_back(L"fgh");
  </code></pre>
  
  <p>I want to assign <strong>nameList</strong> vector first element to <strong>name</strong> array,</p>
  
  <p>Can any one help for that me?</p>