<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BlueScripts &#187; bugs</title>
	<atom:link href="http://bluescripts.net/tag/bugs/feed/" rel="self" type="application/rss+xml" />
	<link>http://bluescripts.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 07 Jul 2010 16:42:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>C++ not reading in integers: Windows vs Mac error?</title>
		<link>http://bluescripts.net/2009/11/c-windows-vs-mac-error/</link>
		<comments>http://bluescripts.net/2009/11/c-windows-vs-mac-error/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 17:08:55 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[c++]]></category>

		<guid isPermaLink="false">http://bluescripts.net/?p=293</guid>
		<description><![CDATA[Well I was doing some homework today in XCode and ran across a strange error&#8230; Assume the first line of the file is an integer, lets say 127 ifstream inFile; int number; inFile &#62;&#62; number; You would think, on both windows and mac this would store 127 in number. Only on windows. On my mac [...]]]></description>
			<content:encoded><![CDATA[<p>Well I was doing some homework today in XCode and ran across a strange error&#8230;</p>
<p>Assume the first line of the file is an integer, lets say 127</p>
<pre>ifstream inFile;
int number;
inFile &gt;&gt; number;</pre>
<p>You would think, on both windows and mac this would store 127 in number.<br />
Only on windows. On my mac it would read in 0 as the value.</p>
<p>On mac (specifically in xcode) to get that number&#8230;</p>
<pre>ifstream inFile;
int num;
string temp_num;
inFile &gt;&gt; temp_num;
num = atoi(temp_num.c_str());</pre>
<p>Interesting little bug, or perhaps design choice?</p>
]]></content:encoded>
			<wfw:commentRss>http://bluescripts.net/2009/11/c-windows-vs-mac-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
