<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Prashant Thorat's Blog</title>
	<atom:link href="http://prashantthorat.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://prashantthorat.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 01 Mar 2010 14:27:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='prashantthorat.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Prashant Thorat's Blog</title>
		<link>http://prashantthorat.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://prashantthorat.wordpress.com/osd.xml" title="Prashant Thorat&#039;s Blog" />
	<atom:link rel='hub' href='http://prashantthorat.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Permutation of String in c++</title>
		<link>http://prashantthorat.wordpress.com/2010/03/01/permutation-of-string-in-c-2/</link>
		<comments>http://prashantthorat.wordpress.com/2010/03/01/permutation-of-string-in-c-2/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 14:11:42 +0000</pubDate>
		<dc:creator>prashantthorat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://prashantthorat.wordpress.com/?p=21</guid>
		<description><![CDATA[Hello people again , one day I was thinking calculating all permutations of string in c++ is difficult but now when I got familiar with recursion that was so easy to do the job.I had seen many codes on internet but didn&#8217;t get anyone. Here is my code. It&#8217;s self explanatory. #include &#60;cstdio&#62; #include &#60;iostream&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prashantthorat.wordpress.com&amp;blog=7071199&amp;post=21&amp;subd=prashantthorat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello people again , one day I was thinking  calculating all permutations of string in c++ is difficult<br /> but now  when I got familiar  with  recursion that was so easy to do the job.<br />I had seen many codes on internet but didn&#8217;t get anyone. Here is my code. It&#8217;s self explanatory.</p>
<div>
<div>#include &lt;cstdio&gt;</div>
<p></p>
<div>#include &lt;iostream&gt;</div>
<p></p>
<div>#include &lt;string&gt;</div>
<p></p>
<div>#include &lt;vector&gt;</div>
<p></p>
<div>using namespace std;</div>
<p></p>
<div>vector&lt;string&gt; permute(string ,int );</div>
<p></p>
<div>main()</div>
<p></p>
<div>{</div>
<p></p>
<div style="margin-left:20px;"></p>
<div>string s=&#8221;1234&#8243;;</div>
<p></p>
<div>vector&lt;string&gt; output=permute(s,s.size());</div>
<p></p>
<div>for(int i=0;i&lt;output.size();i++)</div>
<p></p>
<div>cout&lt;&lt;output[i]&lt;&lt;endl;</div>
<p>
</div>
<p></p>
<div>}</div>
<p></p>
<div>vector&lt;string&gt; permute(string s,int n) //this will return all permutions of string s as array of strings</div>
<p></p>
<div>{</div>
<p></p>
<div style="margin-left:20px;"></p>
<div>if(n==1)</div>
<p></p>
<div>{</div>
<p></p>
<div style="margin-left:30px;"></p>
<div>vector&lt;string&gt; v;</div>
<p></p>
<div>v.push_back(s);</div>
<p></p>
<div>return v;</div>
<p>
</div>
<p></p>
<div>}</div>
<p></p>
<div>else</div>
<p></p>
<div>{</div>
<p></p>
<div style="margin-left:30px;"></p>
<div>vector&lt;string&gt; v;</div>
<p></p>
<div>for(int i=0;i&lt;s.size();i++)</div>
<p></p>
<div>{</div>
<p></p>
<div style="margin-left:40px;"></p>
<div>string temp=&#8221;";</div>
<p></p>
<div>for(int j=0;j&lt;s.size();j++)</div>
<p></p>
<div>if(j!=i) temp+=s[j]; // temp is string of all charactor in s except s[i]</div>
<p></p>
<div>vector&lt;string&gt; vv;</div>
<p></p>
<div>vv = permute(temp,n-1); // logic is keep s[i] to first place and concatinate it with all permution of temp</div>
<p></p>
<div>for(int k=0;k&lt;vv.size();k++)</div>
<p></p>
<div>v.push_back(s[i]+vv[k]);</div>
<p>
</div>
<p></p>
<div>}</div>
<p></p>
<div>return v;</div>
<p></p>
</div>
<div>}</div>
<p>
</div>
<div>}</div>
<p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prashantthorat.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prashantthorat.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prashantthorat.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prashantthorat.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prashantthorat.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prashantthorat.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prashantthorat.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prashantthorat.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prashantthorat.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prashantthorat.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prashantthorat.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prashantthorat.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prashantthorat.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prashantthorat.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prashantthorat.wordpress.com&amp;blog=7071199&amp;post=21&amp;subd=prashantthorat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prashantthorat.wordpress.com/2010/03/01/permutation-of-string-in-c-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b0deb3f63e011ecd7c192edd22ba013?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prashantthorat</media:title>
		</media:content>
	</item>
		<item>
		<title>Important facts in c</title>
		<link>http://prashantthorat.wordpress.com/2010/03/01/important-facts-in-c/</link>
		<comments>http://prashantthorat.wordpress.com/2010/03/01/important-facts-in-c/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 14:05:18 +0000</pubDate>
		<dc:creator>prashantthorat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://prashantthorat.wordpress.com/?p=31</guid>
		<description><![CDATA[1.  character \b is used as back space. 2. character \r is used to print from the beginning of the line. 3. pre-increment with post-increment like ++i++ will give compile error as non-lvalue increment 4. Expression evaluation from left to right and argument passing from right to left. // VIMportant<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prashantthorat.wordpress.com&amp;blog=7071199&amp;post=31&amp;subd=prashantthorat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1.  character \b is used as back space.<br />
2. character \r is used to print from the beginning of the line.<br />
3. pre-increment with post-increment like ++i++ will give compile error as non-lvalue increment<br />
4. Expression evaluation from left to right and argument passing from right to left. // VIMportant</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prashantthorat.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prashantthorat.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prashantthorat.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prashantthorat.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prashantthorat.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prashantthorat.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prashantthorat.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prashantthorat.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prashantthorat.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prashantthorat.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prashantthorat.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prashantthorat.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prashantthorat.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prashantthorat.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prashantthorat.wordpress.com&amp;blog=7071199&amp;post=31&amp;subd=prashantthorat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prashantthorat.wordpress.com/2010/03/01/important-facts-in-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b0deb3f63e011ecd7c192edd22ba013?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prashantthorat</media:title>
		</media:content>
	</item>
		<item>
		<title>Little Ignorence may fail your code</title>
		<link>http://prashantthorat.wordpress.com/2009/08/05/little-ignorence-may-fail-your-code/</link>
		<comments>http://prashantthorat.wordpress.com/2009/08/05/little-ignorence-may-fail-your-code/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 20:25:18 +0000</pubDate>
		<dc:creator>prashantthorat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://prashantthorat.wordpress.com/?p=17</guid>
		<description><![CDATA[Only one codition made my problem in topcoder&#8217;s 250 point pronlem in div 2 failed. You can view my code here http://www.topcoder.com/stat?c=problem_solution&#38;rm=301792&#38;rd=13898&#38;pm=10489&#38;cr=22692505. Can you tell what&#8217;s the value of  s.size()-2 where s is the c++ string of value 1. Many of people will answer -1 to this but actually it will give some big interger [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prashantthorat.wordpress.com&amp;blog=7071199&amp;post=17&amp;subd=prashantthorat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Only one codition made my problem in topcoder&#8217;s 250 point pronlem in div 2 failed. You can view my code here <a href="http://www.topcoder.com/stat?c=problem_solution&amp;rm=301792&amp;rd=13898&amp;pm=10489&amp;cr=22692505">http://www.topcoder.com/stat?c=problem_solution&amp;rm=301792&amp;rd=13898&amp;pm=10489&amp;cr=22692505</a>. Can you tell what&#8217;s the value of  s.size()-2 where s is the c++ string of value 1. Many of people will answer -1 to this but actually it will give some big interger with negative value. To get value of 1 we need to typecast s.size() to integer becouse s.size assumes its value to be unsigned integer. So while writing your code sometimes these things may lead to wrong answer.</p>
<p>In this srm 444, I challenged one guy successfully but mine code failed. So I learned two things from this one is &#8220;We dont see our faults but we see find fault in others&#8221; and other is &#8220;We should learn from our own mistakes&#8221;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prashantthorat.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prashantthorat.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prashantthorat.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prashantthorat.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prashantthorat.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prashantthorat.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prashantthorat.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prashantthorat.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prashantthorat.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prashantthorat.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prashantthorat.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prashantthorat.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prashantthorat.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prashantthorat.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prashantthorat.wordpress.com&amp;blog=7071199&amp;post=17&amp;subd=prashantthorat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prashantthorat.wordpress.com/2009/08/05/little-ignorence-may-fail-your-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b0deb3f63e011ecd7c192edd22ba013?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prashantthorat</media:title>
		</media:content>
	</item>
		<item>
		<title>Which compiler should I use for C or C++?</title>
		<link>http://prashantthorat.wordpress.com/2009/03/25/which-compiler-should-i-use-for-c-or-c/</link>
		<comments>http://prashantthorat.wordpress.com/2009/03/25/which-compiler-should-i-use-for-c-or-c/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 16:56:23 +0000</pubDate>
		<dc:creator>prashantthorat</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://prashantthorat.wordpress.com/?p=13</guid>
		<description><![CDATA[This is my first post in my blog . As my career is related with computers/software, I would like to tell you which compiler one should  use for different purposes. First thing is that if you are beginner (i.e. you have just learn to write &#8220;Hello World&#8221;) then my suggestion is turbo C is more [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prashantthorat.wordpress.com&amp;blog=7071199&amp;post=13&amp;subd=prashantthorat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">This is my first post in my blog . As my career is related with computers/software,</p>
<p style="text-align:left;">I would like to tell you which compiler one should  use for different purposes.</p>
<p style="text-align:left;">First thing is that if you are beginner (i.e. you have just learn to write &#8220;Hello World&#8221;)</p>
<p style="text-align:left;">then my suggestion is turbo C is more preferable.If you use vista then use turbo-c 4.5</p>
<p style="text-align:left;">as other versions of turbo C will not work in vista and for xp users they can try any version of turbo-c.</p>
<p style="text-align:left;">Once you are done with Hello World then you must try <strong>Dev-Cpp </strong> compiler/IDE  as</p>
<p style="text-align:left;">It uses the MinGW port of the GCC (GNU Compiler Collection) as its compiler</p>
<p style="text-align:left;">and debugging is very easy, so one can easily find his bugs in program.</p>
<p style="text-align:left;">If you use  linux then you can use GCC/G++.</p>
<p style="text-align:left;">My suggestion will be don&#8217;t use gcc in linux as it&#8217;s not easy to debug your code</p>
<p style="text-align:left;">using gnome debugger.</p>
<p style="text-align:left;">You can download Dev-Cpp <a title="Dev-cpp 4.9.9.2" href="http://download.cnet.com/3001-20_4-12686.html?spi=ca33d04f0b49829d1b56f8e6902280c5" target="_blank">here</a>. If you find some trouble with dev-cpp then</p>
<p style="text-align:left;">do some google you may find a solution or else post your comment here</p>
<p style="text-align:left;">I can help you at my best.</p>
<p style="text-align:left;">Further if you want to make a project then Dev-cpp can be used but my suggestion</p>
<p style="text-align:left;">will be to use visual c++ or net-beans.</p>
<p style="text-align:left;">Check out some coding sites like <a title="spoj" href="http://www.spoj.pl/" target="_blank">SPOJ</a> or <a title="topcoder" href="http://www.topcoder.com/tc" target="_blank">TOPCODER</a> they will improve your coding</p>
<p style="text-align:left;">skills. For SPOJ you should use Dec-cpp not turbo C.</p>
<p style="text-align:left;">Thank you for your time for reading my blog.</p>
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<p style="text-align:left;">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prashantthorat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prashantthorat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prashantthorat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prashantthorat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prashantthorat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prashantthorat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prashantthorat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prashantthorat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prashantthorat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prashantthorat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prashantthorat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prashantthorat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prashantthorat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prashantthorat.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prashantthorat.wordpress.com&amp;blog=7071199&amp;post=13&amp;subd=prashantthorat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prashantthorat.wordpress.com/2009/03/25/which-compiler-should-i-use-for-c-or-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6b0deb3f63e011ecd7c192edd22ba013?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prashantthorat</media:title>
		</media:content>
	</item>
	</channel>
</rss>
