<?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>Web Techie&#187; pointer</title>
	<atom:link href="http://www.feedpals.com/tag/pointer/feed" rel="self" type="application/rss+xml" />
	<link>http://www.feedpals.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 08 Sep 2010 21:14:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Simple Code for Link List &#8211; Data Structure</title>
		<link>http://www.feedpals.com/simple-code-for-link-list-data-structure.html</link>
		<comments>http://www.feedpals.com/simple-code-for-link-list-data-structure.html#comments</comments>
		<pubDate>Fri, 30 Jun 2006 07:58:03 +0000</pubDate>
		<dc:creator>Shahid Siddique</dc:creator>
		<br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>/home/feedpals/public_html/wp-content/plugins/autometa/autometa.php</b> on line <b>300</b><br />
		<category><![CDATA[C/C++ Help]]></category>
		<category><![CDATA[c snippets]]></category>
		<category><![CDATA[link list]]></category>
		<category><![CDATA[pointer]]></category>

	<!-- AutoMeta Start -->
	<!-- AutoMeta End -->
	
		<guid isPermaLink="false">http://www.feedpals.com/?p=7</guid>
		<description><![CDATA[Its very first program for link list, which helps you to learn Pointer &#38; Link List easily.
Please do not enter any Data type other then  Integer Data otherwise It&#8217;ll go in Infinite Loop.
#include &#60;iostream.h&#62;
#include &#60;process.h&#62;
class linklist
{
linklist *next;
int data;
public:
linklist * ifirst(linklist *);
void traverse(linklist *);
linklist * ilast(linklist *);
void del(linklist *);
};
linklist * linklist::ifirst(linklist *temp)
{
linklist *newlink;
newlink=new linklist;
cout&#60;&#60;"\nEnter Data\n";
cin&#62;&#62;newlink-&#62;data;
newlink-&#62;next=temp;
temp=newlink;
return temp;
}
void [...]]]></description>
			<content:encoded><![CDATA[<p>Its very first program for link list, which helps you to learn Pointer &amp; Link List easily.</p>
<p><span style="color: #ff0000;">Please do not enter any Data type other then  Integer Data otherwise It&#8217;ll go in Infinite Loop.</span></p>
<blockquote><p><code>#include &lt;iostream.h&gt;<br />
#include &lt;process.h&gt;<br />
class linklist<br />
{<br />
linklist *next;<br />
int data;<br />
public:<br />
linklist * ifirst(linklist *);<br />
void traverse(linklist *);<br />
linklist * ilast(linklist *);<br />
void del(linklist *);<br />
};<br />
linklist * linklist::ifirst(linklist *temp)<br />
{<br />
linklist *newlink;<br />
newlink=new linklist;<br />
cout&lt;&lt;"\nEnter Data\n";<br />
cin&gt;&gt;newlink-&gt;data;<br />
newlink-&gt;next=temp;<br />
temp=newlink;<br />
return temp;<br />
}<br />
void linklist::traverse(linklist *temp)<br />
{<br />
while(temp!=NULL)<br />
{<br />
cout&lt;&lt;temp-&gt;data&lt;&lt;endl;<br />
temp=temp-&gt;next;<br />
}</code><br />
<code>}</code><br />
<code>linklist * linklist::ilast(linklist *temp)<br />
{<br />
linklist *newlink;<br />
newlink=new linklist;<br />
if (temp==NULL)<br />
{<br />
linklist *newlink;<br />
newlink=new linklist;<br />
cout&lt;&lt;"\nEnter Data :";<br />
cin&gt;&gt;newlink-&gt;data;<br />
newlink-&gt;next=temp;<br />
temp=newlink;<br />
}<br />
else<br />
{<br />
linklist *cur;<br />
cur=temp;<br />
while(cur-&gt;next!=NULL)<br />
{<br />
cur=cur-&gt;next;<br />
}<br />
cout&lt;&lt;"\nEnter Data :";<br />
cin&gt;&gt;newlink-&gt;data;<br />
newlink-&gt;next=NULL;<br />
cur-&gt;next=newlink;<br />
}<br />
return temp;</code><br />
<code>}<br />
void main()<br />
{<br />
linklist *first=NULL,l1;<br />
int choice;<br />
while(1)<br />
{<br />
cout&lt;&lt;"**************** LINK LIST (Only For Integer) ****************\n\n";<br />
cout&lt;&lt;"Choices Are :-\n=&gt; [1] For Insert First\n=&gt; [2] For Insert Last\n=&gt; [3] For Traverse\n=&gt; [4] For Exit";<br />
cout&lt;&lt;"\n\nEnter Your choice : ";<br />
cin&gt;&gt;choice;</code><br />
<code>switch (choice)<br />
{<br />
case 1:<br />
first=l1.ifirst(first);<br />
break;<br />
case 2:<br />
first=l1.ilast(first);<br />
break;<br />
case 3:<br />
l1.traverse(first);<br />
break;<br />
case 4:<br />
exit(0);</code><br />
<code>}</code><br />
<code>}<br />
}<span style="color: #ff0000;"><br />
</span></code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.feedpals.com/simple-code-for-link-list-data-structure.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>