title: Convert from #define to string c++
body: <p>I would like to convert from #define to string.</p>
  
  <p>My code:</p>
  
  <pre><code>#ifdef WIN32
  #define PREFIX_PATH = "..\\"
  #else
  #define PREFIX_PATH = "..\\..\\"
  #endif
  
  
  #define VAL(str) #str
  #define TOSTRING(str) VAL(str)
  
  string prefix = TOSTRING(PREFIX_PATH);
  string path = prefix + "Test\\Input\input.txt";
  </code></pre>
  
  <p>But, it didn't work.. </p>
  
  <p>prefix value is "..\\\"</p>
  
  <p>Any idea what is the problem..</p>
  
  <p>Thanks!</p>