<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: To replace a word by another word in a given string</title>
	<atom:link href="http://electrofriends.com/source-codes/software-programs/c/string-programs/to-replace-a-word-by-another-word-in-a-given-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-replace-a-word-by-another-word-in-a-given-string/</link>
	<description>...bringing innovative minds together</description>
	<lastBuildDate>Thu, 09 Feb 2012 18:55:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.6</generator>
	<item>
		<title>By: faras raoof</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-replace-a-word-by-another-word-in-a-given-string/comment-page-1/#comment-6626</link>
		<dc:creator>faras raoof</dc:creator>
		<pubDate>Thu, 12 Jan 2012 16:44:11 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=392#comment-6626</guid>
		<description>and by the way , that program uses the concept of string as a two dimensional array . the limitation is that you got to decide the maximum number of letters in the word and the exact number of words in the sentence at the beginning of the program ......in the above case, being 5 words(exactly) and maximum of 6 letters in the word.</description>
		<content:encoded><![CDATA[<p>and by the way , that program uses the concept of string as a two dimensional array . the limitation is that you got to decide the maximum number of letters in the word and the exact number of words in the sentence at the beginning of the program &#8230;&#8230;in the above case, being 5 words(exactly) and maximum of 6 letters in the word.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: faras raoof</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-replace-a-word-by-another-word-in-a-given-string/comment-page-1/#comment-6625</link>
		<dc:creator>faras raoof</dc:creator>
		<pubDate>Thu, 12 Jan 2012 14:37:30 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=392#comment-6625</guid>
		<description>#include
#include
#include
void main()
{
int k=0,i,j,l,t;
char a[20],b[20],c[20],d[20];
char name[5][6];
clrscr();
printf(&quot;enter the main string\n&quot;);
gets(a);
printf(&quot;enter the word to be deleted\n&quot;);
gets(b);
printf(&quot;enter the word to be replaced with\n&quot;);
gets(c);
l=strlen(a);
for(i=0;i&lt;l;i++)
	{
	j=0;
	while(a[i]!=&#039; &#039;&amp;&amp; a[i]!=&#039;&#039;)
		{
		d[j]=a[i];
		i++;
		j++;
		}
		d[j]=&#039;&#039;;
		strcpy(name[k],d);
		k++;
	}
for(k=0;k&lt;5;k++)
	{
	t= strcmp(name[k],b);
	if(t==0)
		{
		strcpy(name[k],c);
		}
	}
for(k=0;k&lt;5;k++)
	{
	printf(&quot; %s&quot;,name[k]);
	}
	getch();
}</description>
		<content:encoded><![CDATA[<p>#include<br />
#include<br />
#include<br />
void main()<br />
{<br />
int k=0,i,j,l,t;<br />
char a[20],b[20],c[20],d[20];<br />
char name[5][6];<br />
clrscr();<br />
printf(&#8220;enter the main string\n&#8221;);<br />
gets(a);<br />
printf(&#8220;enter the word to be deleted\n&#8221;);<br />
gets(b);<br />
printf(&#8220;enter the word to be replaced with\n&#8221;);<br />
gets(c);<br />
l=strlen(a);<br />
for(i=0;i&lt;l;i++)<br />
	{<br />
	j=0;<br />
	while(a[i]!=&#039; &#039;&amp;&amp; a[i]!=&#039;&#039;)<br />
		{<br />
		d[j]=a[i];<br />
		i++;<br />
		j++;<br />
		}<br />
		d[j]=&#039;&#039;;<br />
		strcpy(name[k],d);<br />
		k++;<br />
	}<br />
for(k=0;k&lt;5;k++)<br />
	{<br />
	t= strcmp(name[k],b);<br />
	if(t==0)<br />
		{<br />
		strcpy(name[k],c);<br />
		}<br />
	}<br />
for(k=0;k&lt;5;k++)<br />
	{<br />
	printf(&quot; %s&quot;,name[k]);<br />
	}<br />
	getch();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: faras raoof</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-replace-a-word-by-another-word-in-a-given-string/comment-page-1/#comment-6624</link>
		<dc:creator>faras raoof</dc:creator>
		<pubDate>Thu, 12 Jan 2012 14:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=392#comment-6624</guid>
		<description>buddy, try &quot;debugging&quot; using the &quot;watch&quot; option .if you are using turbo C, go to menu bar, select debugger , add &quot;watch&quot; values and have the pleasure of learning it yourself :)</description>
		<content:encoded><![CDATA[<p>buddy, try &#8220;debugging&#8221; using the &#8220;watch&#8221; option .if you are using turbo C, go to menu bar, select debugger , add &#8220;watch&#8221; values and have the pleasure of learning it yourself <img src='http://electrofriends.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: soha sheikh</title>
		<link>http://electrofriends.com/source-codes/software-programs/c/string-programs/to-replace-a-word-by-another-word-in-a-given-string/comment-page-1/#comment-6500</link>
		<dc:creator>soha sheikh</dc:creator>
		<pubDate>Wed, 28 Dec 2011 02:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://electrofriends.com/?p=392#comment-6500</guid>
		<description>mujhe koi ye program smjha do,means every step kaise kaise ho rha ek array box example me le k plz plz!
Q-wap input a string then find out occurence of each character?
       void main()
        {
        int i ,j,k,c;
        printf(&quot;enter a string&quot;);
         gets(a);
        for(i=0;i&lt;strlen(a);i++)
         {
        c=1;
        for(j=i+1;j&lt;strlen(a);j++)
        {
        c++;
         for(k=j;k&lt;strlen(a);k++)
         a[k]=a[k+1];
          j--;
          }
          }
        printf(&quot;\n%c=%dtimes&quot;,a[i],c);
           }
           getch();
            }</description>
		<content:encoded><![CDATA[<p>mujhe koi ye program smjha do,means every step kaise kaise ho rha ek array box example me le k plz plz!<br />
Q-wap input a string then find out occurence of each character?<br />
       void main()<br />
        {<br />
        int i ,j,k,c;<br />
        printf(&#8220;enter a string&#8221;);<br />
         gets(a);<br />
        for(i=0;i&lt;strlen(a);i++)<br />
         {<br />
        c=1;<br />
        for(j=i+1;j&lt;strlen(a);j++)<br />
        {<br />
        c++;<br />
         for(k=j;k&lt;strlen(a);k++)<br />
         a[k]=a[k+1];<br />
          j&#8211;;<br />
          }<br />
          }<br />
        printf(&quot;\n%c=%dtimes&quot;,a[i],c);<br />
           }<br />
           getch();<br />
            }</p>
]]></content:encoded>
	</item>
</channel>
</rss>

