<?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="https://studentprojects.in/software-development/c-tutorials/c/string/to-replace-a-word-by-another-word-in-a-given-string/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in/software-development/c-tutorials/c/string/to-replace-a-word-by-another-word-in-a-given-string/</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Fri, 18 Oct 2013 18:27:19 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>
		By: Rohith		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/string/to-replace-a-word-by-another-word-in-a-given-string/comment-page-1/#comment-10235</link>

		<dc:creator><![CDATA[Rohith]]></dc:creator>
		<pubDate>Fri, 18 Oct 2013 18:27:19 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=392#comment-10235</guid>

					<description><![CDATA[Hey faras raoof...Thanx for ur program. But There is something missing.
I write: A quick brown fox
// and replace fox with dog
The output comes like: A quick brown dog --------fox

Why is this: ----------fox visible? :/ what should i decrement in order to get that array in place? Is this how u designed the program or its d garbage value which fits into the 2d array? plz help]]></description>
			<content:encoded><![CDATA[<p>Hey faras raoof&#8230;Thanx for ur program. But There is something missing.<br />
I write: A quick brown fox<br />
// and replace fox with dog<br />
The output comes like: A quick brown dog &#8212;&#8212;&#8211;fox</p>
<p>Why is this: &#8212;&#8212;&#8212;-fox visible? :/ what should i decrement in order to get that array in place? Is this how u designed the program or its d garbage value which fits into the 2d array? plz help</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: SOURAV BANERJEE		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/string/to-replace-a-word-by-another-word-in-a-given-string/comment-page-1/#comment-10229</link>

		<dc:creator><![CDATA[SOURAV BANERJEE]]></dc:creator>
		<pubDate>Sun, 13 Oct 2013 04:38:28 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=392#comment-10229</guid>

					<description><![CDATA[USING POINTERS ARE MORE BETTER THAN NORMAL CODINGS]]></description>
			<content:encoded><![CDATA[<p>USING POINTERS ARE MORE BETTER THAN NORMAL CODINGS</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: SOURAV BANERJEE		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/string/to-replace-a-word-by-another-word-in-a-given-string/comment-page-1/#comment-10228</link>

		<dc:creator><![CDATA[SOURAV BANERJEE]]></dc:creator>
		<pubDate>Sun, 13 Oct 2013 04:37:34 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=392#comment-10228</guid>

					<description><![CDATA[THIS PROGRAMMING CODE IS MORE EASIER THAN THIS ONE...
TRY IT GUYS... (^_^)



#include 
#include 
#include 

#include 
using namespace std;

int main()
{

string str;

vector a;
vector::iterator it;

char word[40];

cout&#060;&#060;&#034;Please enter something :&#034;&#060;&#060;endl;

gets(word);

int pos;

int length = strlen(word);


// copy the sentence into a vector 
for(int i=0;i&#060;length;i++)
{
str.push_back(word[i]);

if(word[i] == &#039; &#039; &#124;&#124; i == length - 1 )
{
a.push_back(str);
str.clear();
continue;
}

}	


cout&#060;&#060;&#034;Please enter another string: &#034;&#060;&#062;str;


cout&#060;&#060;&#034;Enter the position to replace the word:&#034;&#060;&#062;pos;


it = a.begin();

it = a.erase(it+pos);

it = a.begin();

a.insert(it+pos,str);


for(it = a.begin();it &#060;a.end();it++)
{
cout&#060;&#060;*it&#060;&#060;&#034; &#034;;
}

cout&#060;&#060;endl;

system(&#034;pause&#034;);

}



A VERY EASY CODE...]]></description>
			<content:encoded><![CDATA[<p>THIS PROGRAMMING CODE IS MORE EASIER THAN THIS ONE&#8230;<br />
TRY IT GUYS&#8230; (^_^)</p>
<p>#include<br />
#include<br />
#include </p>
<p>#include<br />
using namespace std;</p>
<p>int main()<br />
{</p>
<p>string str;</p>
<p>vector a;<br />
vector::iterator it;</p>
<p>char word[40];</p>
<p>cout&lt;&lt;&quot;Please enter something :&quot;&lt;&lt;endl;</p>
<p>gets(word);</p>
<p>int pos;</p>
<p>int length = strlen(word);</p>
<p>// copy the sentence into a vector<br />
for(int i=0;i&lt;length;i++)<br />
{<br />
str.push_back(word[i]);</p>
<p>if(word[i] == &#039; &#039; || i == length &#8211; 1 )<br />
{<br />
a.push_back(str);<br />
str.clear();<br />
continue;<br />
}</p>
<p>}	</p>
<p>cout&lt;&lt;&quot;Please enter another string: &quot;&lt;&gt;str;</p>
<p>cout&lt;&lt;&quot;Enter the position to replace the word:&quot;&lt;&gt;pos;</p>
<p>it = a.begin();</p>
<p>it = a.erase(it+pos);</p>
<p>it = a.begin();</p>
<p>a.insert(it+pos,str);</p>
<p>for(it = a.begin();it &lt;a.end();it++)<br />
{<br />
cout&lt;&lt;*it&lt;&lt;&quot; &quot;;<br />
}</p>
<p>cout&lt;&lt;endl;</p>
<p>system(&quot;pause&quot;);</p>
<p>}</p>
<p>A VERY EASY CODE&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: SOURAV BANERJEE		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/string/to-replace-a-word-by-another-word-in-a-given-string/comment-page-1/#comment-10227</link>

		<dc:creator><![CDATA[SOURAV BANERJEE]]></dc:creator>
		<pubDate>Sun, 13 Oct 2013 04:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=392#comment-10227</guid>

					<description><![CDATA[bad program. should have some easy solution]]></description>
			<content:encoded><![CDATA[<p>bad program. should have some easy solution</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: dinu		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/string/to-replace-a-word-by-another-word-in-a-given-string/comment-page-1/#comment-9719</link>

		<dc:creator><![CDATA[dinu]]></dc:creator>
		<pubDate>Sat, 20 Apr 2013 06:28:29 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=392#comment-9719</guid>

					<description><![CDATA[please give a better idea about a program to replace two words]]></description>
			<content:encoded><![CDATA[<p>please give a better idea about a program to replace two words</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ganeshkumar		</title>
		<link>https://studentprojects.in/software-development/c-tutorials/c/string/to-replace-a-word-by-another-word-in-a-given-string/comment-page-1/#comment-8897</link>

		<dc:creator><![CDATA[Ganeshkumar]]></dc:creator>
		<pubDate>Sat, 15 Sep 2012 11:33:46 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=392#comment-8897</guid>

					<description><![CDATA[sir,
i need c program to delete substing like following string1=&quot;concatenate&quot;,string2=&quot;cat&quot;
string2 ll be deleted from string1 so result should be string1=&quot;conenate&quot;.can u give me the coding for thos sir...]]></description>
			<content:encoded><![CDATA[<p>sir,<br />
i need c program to delete substing like following string1=&#8221;concatenate&#8221;,string2=&#8221;cat&#8221;<br />
string2 ll be deleted from string1 so result should be string1=&#8221;conenate&#8221;.can u give me the coding for thos sir&#8230;</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
