title: Delete Files with C++ on windows
body: <p>I am writing a C++ program and I want to have some created files deleted if meeting with some conditions. These file have various file names that are assigned  using type "string" in each iteration. Now I'm trying to delete some of the files with their file names, but it seems that neither <strong>Deletefile</strong> function nor <strong>remove</strong> can deal with C++ strings. I have also tried to convert the strings to c type char* but it doesn't work.</p>
  
  <p>I'm using visual studio community 2015 on windows 10.</p>
  
  <p>Is their any convenient way for this problem? </p>