<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Project Compiling Error' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Project Compiling Error' posted on the 'Beginner C/C++' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2008 Programmers Heaven</copyright>
    <pubDate>Tue, 13 May 2008 20:54:59 -0700</pubDate>
    <lastBuildDate>Tue, 13 May 2008 20:54:59 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Project Compiling Error</title>
      <link>http://www.programmersheaven.com/mb/beginnercpp/370633/370633/ReadMessage.aspx</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;Project Compiling Error&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  on 26 Mar 2008 at 5:49 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;Hello,&lt;br /&gt;
&lt;br /&gt;
I'm working my way through the excellent tutorials on a website called cplusplus.com (thanks for pointing me there) and hit a snag! I started a New Project in the Visual C++ Express IDE and copied the code below, but when I try to Compile it I get this error:&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: Red;"&gt;fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
My Project does contain the file stdafx.h in the Header Folder (automatically created), so I don't understand the Error.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
// Test_Strings.cpp : Defines the entry point for the console application.
// stringstreams
#include &amp;lt;iostream&amp;gt;
#include &amp;lt;string&amp;gt;
#include &amp;lt;sstream&amp;gt;
using namespace std;

int main ()
{
  string mystr;
  float price=0;
  int quantity=0;

  cout &amp;lt;&amp;lt; "Enter price: ";
  getline (cin,mystr);
  stringstream(mystr) &amp;gt;&amp;gt; price;
  cout &amp;lt;&amp;lt; "Enter quantity: ";
  getline (cin,mystr);
  stringstream(mystr) &amp;gt;&amp;gt; quantity;
  cout &amp;lt;&amp;lt; "Total price: " &amp;lt;&amp;lt; price*quantity &amp;lt;&amp;lt; endl;
  return 0;
}
&lt;/pre&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Wed, 26 Mar 2008 17:49:05 -0700</pubDate>
      <category>Beginner C/C++</category>
    </item>
    <item>
      <title>Re: Project Compiling Error</title>
      <link>http://www.programmersheaven.com/mb/beginnercpp/370633/370635/ReadMessage.aspx#370635</link>
      <description>&lt;div class="BoardMessageAreaPrinterFriendly"&gt;
&lt;h2 class="BoardMessageSubjectPrinterFriendly"&gt;Re: Project Compiling Error&lt;/h2&gt;
&lt;div class="BoardMessageInfoPrinterFriendly"&gt;Posted by  on 26 Mar 2008 at 6:00 PM&lt;/div&gt;
&lt;div class="BoardMessageBodyPrinterFriendly"&gt;&lt;br /&gt;
When starting a project, in the new project wizard, select &lt;strong&gt;General&lt;/strong&gt; on the left pane, and select &lt;strong&gt;Empty Project&lt;/strong&gt; on the right side. Create your project.&lt;br /&gt;
&lt;br /&gt;
This should make a completely empty project so that you can focus on learning the language, rather then MSVC++ adding its own stdafx file (Which isnt needed, anyways.)&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
If you want to stick with using stdafx, you need to add this to your source file:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;#include "stdafx.h"&lt;/pre&gt;&lt;br /&gt;
&lt;hr /&gt;&lt;span style="font-size: xx-small;"&gt;&amp;#91;.:EvolutionEngine&amp;#93;&amp;#91;.:MicroOS Operating System&amp;#93;&amp;#91;&lt;a href="http://www.brokenthorn.com"&gt;Website :: OS Development Series&amp;#93;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</description>
      <pubDate>Wed, 26 Mar 2008 18:00:03 -0700</pubDate>
      <category>Beginner C/C++</category>
    </item>
  </channel>
</rss>