title: visual studio c++ cannot open any source file
body: <p>I've been using visual studio for my unreal projects for some time now.
  But when i try to code something in vs i get the error &quot;cannot open source file&quot;.
  I have a very basic c++ code;</p>
  <pre><code>#include &lt;iostream&gt;
  
  int main()
  {
      std::cout &lt;&lt; &quot;Hello World!\n&quot;;
  }
  </code></pre>
  <p>when i debug this code i get the error that almost every header file(435 header files) like float.h, string.h, time.h etc. cannot open.</p>
  <p><a href="https://i.stack.imgur.com/Ubz2E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ubz2E.png" alt="enter image description here" /></a></p>
  <p>When i try compiling the code using gcc i get another error but when i use g++ i get no error.</p>
  <p><a href="https://i.stack.imgur.com/czFLV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/czFLV.png" alt="enter image description here" /></a></p>
  <p>So i'm assuming i need to change debug options of visual studio. I've tried buy i couldn't figure that out.
  How can i make visual studio run the code properly?</p>