<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - STL lists - Comments</title>
 <link>http://www.newlc.com/forum/stl-lists</link>
 <description>Comments for &quot;STL lists&quot;</description>
 <language>en</language>
<item>
 <title>Re: STL lists</title>
 <link>http://www.newlc.com/forum/stl-lists#comment-43033</link>
 <description>&lt;p&gt;something like this I assume?&lt;/p&gt;

&lt;p&gt;&lt;pre class=&quot;bb-code-block&quot;&gt;
MyList.append(Node(string1,string2));
&lt;/pre&gt;&lt;/p&gt;

&lt;p&gt;though, you should declare the members of the node as public, and write a constructor for it also (but I think you will get a default constructor that fit the above)&lt;br /&gt;
&lt;/p&gt;</description>
 <pubDate>Mon, 19 Nov 2007 15:50:17 +0100</pubDate>
 <dc:creator>alh</dc:creator>
 <guid isPermaLink="false">comment 43033 at http://www.newlc.com</guid>
</item>
<item>
 <title>STL lists</title>
 <link>http://www.newlc.com/forum/stl-lists</link>
 <description>&lt;p&gt;Is anyone familiar with the STL (Standard Template Library) in C++?&lt;br /&gt;
I want to use the list class but I do not immediately see any examples of how to use it with anything more complex than an integer class.&lt;/p&gt;

&lt;p&gt;For example, how would you impliment a node with two strings such as this:&lt;/p&gt;

&lt;p&gt;[CODE]&lt;br /&gt;
#include &lt;list&gt; // list class-template definition&lt;/p&gt;

&lt;p&gt;using namespace std; &lt;/p&gt;

&lt;p&gt;class Node&lt;br /&gt;
{&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/forum/stl-lists&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/forum/stl-lists#comments</comments>
 <category domain="http://www.newlc.com/forums/microsoft-visual-c-net">Microsoft Visual C++ / Carbide.vs</category>
 <pubDate>Fri, 16 Nov 2007 02:11:17 +0100</pubDate>
 <dc:creator>Captain Xarzu</dc:creator>
 <guid isPermaLink="false">19575 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
