title: visual studio 2012 c++ hello world - iostream not working
body: <p>I have an issue with Visual Studio's 2012. I am also using "Sams Teach Yourself C++ in One Hour a day, 7th edition".</p>
  
  <p>After using google to find the "best" compilers for C++, Visual Studios seemed to be the tool of choice. </p>
  
  <p>So I downloaded and installed Visual Studios 2012. The very first lesson in the book is (and tells me to run it as a console app by going to <strong>File > New > Project >Visual C++ > Win32 > Console Application</strong> )</p>
  
  <pre><code> #include &lt;iostream&gt;
  
  int main()
  {
   std::cout &lt;&lt; “Hello World!” &lt;&lt; std::endl;
   return 0;
  }
  </code></pre>
  
  <p>which doesnt work, at all. it outputs an error message similiar to the following:</p>
  
  <blockquote>
    <p>1>c:\users\nik\documents\visual studio
    2012\projects\consoleapplication4\consoleapplication4\consoleapplication4.cpp(8):
    error C2065: '“Hello' : undeclared identifier
    1>  Generating Code...
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========="</p>
  </blockquote>
  
  <p>(there is more lines similiar to the first, but its rather long)</p>
  
  <p>However, after googling and watching a video on youtube the following code works (using <strong>File > New > Project >Visual C++ > General > Empty Project</strong> )</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include "conio.h"
  
  using namespace std;
  
  int main() {
  cout &lt;&lt; "Hello Nik" &lt;&lt; endl;
  _getch();
  
  return 0;
  }
  </code></pre>
  
  <p>Does Visual Studio's 2012 have a C++ compiler? or does it just have a visual c++ compiler (if thats even the issue, only reason I think it could be is I can see templates for Visual C++ but none for c++ by itself...) or do I need to download Visual Studio Express to download native c++ ??</p>
  
  <p>Any help would be greatly appreciated as I am feeling some-what out of my depth here...</p>
  
  <p>Thanks.</p>