<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: 13.2 &#8212; Input with istream</title>
	<atom:link href="http://www.learncpp.com/cpp-tutorial/132-input-with-istream/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learncpp.com/cpp-tutorial/132-input-with-istream/</link>
	<description></description>
	<pubDate>Sun, 20 Jul 2008 14:29:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Learn C++ - &#187; 13.1 &#8212; Input and output (I/O) streams</title>
		<link>http://www.learncpp.com/cpp-tutorial/132-input-with-istream/#comment-14433</link>
		<dc:creator>Learn C++ - &#187; 13.1 &#8212; Input and output (I/O) streams</dc:creator>
		<pubDate>Mon, 05 May 2008 02:28:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/132-input/#comment-14433</guid>
		<description>[...]   Prev/Next Posts   &#171; 7.4a &#8212; Returning values by value, reference, and address &#124; Home &#124; 13.2 &#8212; Input with istream &#187;     Thursday, February 28th, 2008 at 4:10 [...]</description>
		<content:encoded><![CDATA[<p>[...]   Prev/Next Posts   &laquo; 7.4a &#8212; Returning values by value, reference, and address | Home | 13.2 &#8212; Input with istream &raquo;     Thursday, February 28th, 2008 at 4:10 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/132-input-with-istream/#comment-9194</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Mon, 10 Mar 2008 04:41:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/132-input/#comment-9194</guid>
		<description>I am not sure I understand what you are asking.  Can you make a post in the forum with more specific information about what you are trying to do?  I will address it there.</description>
		<content:encoded><![CDATA[<p>I am not sure I understand what you are asking.  Can you make a post in the forum with more specific information about what you are trying to do?  I will address it there.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://www.learncpp.com/cpp-tutorial/132-input-with-istream/#comment-9172</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Sun, 09 Mar 2008 21:03:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/132-input/#comment-9172</guid>
		<description>hmm, i was taking a similar approach.  You gave me an idea though.  Once i know the rows and cols, which i already figured out how to find, I can individually parse through each and place in an appropriate array.  I was making arrays from arrays and it was getting complicated.

I have another problem though.  my arrays are being defined in a block.  How do I get that information to the outside of the block. I can't declare the variables outside the block because their size isn't known yet.</description>
		<content:encoded><![CDATA[<p>hmm, i was taking a similar approach.  You gave me an idea though.  Once i know the rows and cols, which i already figured out how to find, I can individually parse through each and place in an appropriate array.  I was making arrays from arrays and it was getting complicated.</p>
<p>I have another problem though.  my arrays are being defined in a block.  How do I get that information to the outside of the block. I can&#8217;t declare the variables outside the block because their size isn&#8217;t known yet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/132-input-with-istream/#comment-9166</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 09 Mar 2008 19:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/132-input/#comment-9166</guid>
		<description>I'd suggest a two phase approach:
1) Read through the file once and count your rows
2) Allocate your arrays
3) Read through the file again and read the data into your arrays

If your data is separated by spaces, you should be able to read it from file using the extraction operator (&gt;&gt;) to read into a string or numeric variable.  The extraction operator naturally breaks on whitespace.</description>
		<content:encoded><![CDATA[<p>I&#8217;d suggest a two phase approach:<br />
1) Read through the file once and count your rows<br />
2) Allocate your arrays<br />
3) Read through the file again and read the data into your arrays</p>
<p>If your data is separated by spaces, you should be able to read it from file using the extraction operator (>>) to read into a string or numeric variable.  The extraction operator naturally breaks on whitespace.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://www.learncpp.com/cpp-tutorial/132-input-with-istream/#comment-9143</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Sun, 09 Mar 2008 08:02:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/132-input/#comment-9143</guid>
		<description>I kind of figured out how to get access to files. I've also figured out how to make dynamic, multi dimensional arrays using the boost library.  I haven't figured out how to count the rows and columns in my data, or how to copy the different data types, strings on the edges, and doubles on the inside, into the arrays. this was so easy in MATLAB.  i want to split my one space delimited file into 6 different arrays.</description>
		<content:encoded><![CDATA[<p>I kind of figured out how to get access to files. I&#8217;ve also figured out how to make dynamic, multi dimensional arrays using the boost library.  I haven&#8217;t figured out how to count the rows and columns in my data, or how to copy the different data types, strings on the edges, and doubles on the inside, into the arrays. this was so easy in MATLAB.  i want to split my one space delimited file into 6 different arrays.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.learncpp.com/cpp-tutorial/132-input-with-istream/#comment-9138</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sun, 09 Mar 2008 01:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/132-input/#comment-9138</guid>
		<description>I'm still in the process of writing the I/O chapter, and the file I/O lesson won't be done for a few weeks.  In the meantime, try &lt;a href="http://www.cplusplus.com/doc/tutorial/files.html" rel="nofollow"&gt;this tutorial&lt;/a&gt;, or just go to Google and type in "C++ file I/O".</description>
		<content:encoded><![CDATA[<p>I&#8217;m still in the process of writing the I/O chapter, and the file I/O lesson won&#8217;t be done for a few weeks.  In the meantime, try <a href="http://www.cplusplus.com/doc/tutorial/files.html" rel="nofollow">this tutorial</a>, or just go to Google and type in &#8220;C++ file I/O&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://www.learncpp.com/cpp-tutorial/132-input-with-istream/#comment-9137</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Sun, 09 Mar 2008 01:14:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.learncpp.com/cpp-tutorial/132-input/#comment-9137</guid>
		<description>Ok, i stopped going through your tutorial in chapter 7.  I was going too fast without examples, haha.  I have to go back to beginning and go slower, but i need a project.  I want to try porting my own program over.  Unfortunately, I need input.  How do you read input in from a file and parse it?  I think using CSV files will be the easiest. And how do I save an output file?  Can you point me towards a tutorial that will cover this stuff?  I can probably start coding some other parts, and recode them as I learn new stuff. I'm in no hurry.  But to really be useful I need the file input/output.</description>
		<content:encoded><![CDATA[<p>Ok, i stopped going through your tutorial in chapter 7.  I was going too fast without examples, haha.  I have to go back to beginning and go slower, but i need a project.  I want to try porting my own program over.  Unfortunately, I need input.  How do you read input in from a file and parse it?  I think using CSV files will be the easiest. And how do I save an output file?  Can you point me towards a tutorial that will cover this stuff?  I can probably start coding some other parts, and recode them as I learn new stuff. I&#8217;m in no hurry.  But to really be useful I need the file input/output.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
