<?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>Arturito.net &#187; C++</title>
	<atom:link href="http://arturito.net/category/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://arturito.net</link>
	<description>Come to The Dark Side, We Have Cookies!</description>
	<lastBuildDate>Mon, 09 Apr 2012 15:35:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Visual Studio C# Regular Expressions Examples</title>
		<link>http://arturito.net/2010/03/26/visual-studio-c-regular-expressions-examples/</link>
		<comments>http://arturito.net/2010/03/26/visual-studio-c-regular-expressions-examples/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 16:53:45 +0000</pubDate>
		<dc:creator>guru</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://arturito.net/?p=211</guid>
		<description><![CDATA[TweetNumeric values:

public bool isNumeric(string str) {
Regex pattern = new Regex("[^0-9]");
return !pattern.IsMatch(str);
}

Alfa values:

private bool IsAlpha(string str) {
Regex pattern = new Regex("[^a-zA-Z]");
return !pattern.IsMatch(str);
}

Alfa numeric values:
private bool isAlfaNumeric(string str) {
Regex pattern = new Regex("[^a-zA-Z0-9]");
return !pattern.IsMatch(str);
}

]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton211" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Farturito.net%2F2010%2F03%2F26%2Fvisual-studio-c-regular-expressions-examples%2F&amp;text=Visual%20Studio%20C%23%20Regular%20Expressions%20Examples&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Farturito.net%2F2010%2F03%2F26%2Fvisual-studio-c-regular-expressions-examples%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://arturito.net/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>Numeric values:</p>
<p><code><br />
public bool isNumeric(string str) {<br />
Regex pattern = new Regex("[^0-9]");<br />
return !pattern.IsMatch(str);<br />
}<br />
</code></p>
<p>Alfa values:</p>
<p><code><br />
private bool IsAlpha(string str) {<br />
Regex pattern = new Regex("[^a-zA-Z]");<br />
return !pattern.IsMatch(str);<br />
}<br />
</code></p>
<p>Alfa numeric values:</p>
<p><code>private bool isAlfaNumeric(string str) {<br />
Regex pattern = new Regex("[^a-zA-Z0-9]");<br />
return !pattern.IsMatch(str);<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://arturito.net/2010/03/26/visual-studio-c-regular-expressions-examples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C++ Press any key to continue</title>
		<link>http://arturito.net/2009/04/21/c-plus-plus-press-any-key-to-continue/</link>
		<comments>http://arturito.net/2009/04/21/c-plus-plus-press-any-key-to-continue/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 13:19:26 +0000</pubDate>
		<dc:creator>guru</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://arturito.net/?p=208</guid>
		<description><![CDATA[TweetWhen I write some console application in Bloodshed Dev C++ or Visual Studio, I hate bringing up comand line and typing in the whole path to the program I&#8217;ve just written. I found two short ways of having &#8220;Press any key to continue&#8230;&#8221; before the console window disappears. One of them is a good one [...]]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton208" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Farturito.net%2F2009%2F04%2F21%2Fc-plus-plus-press-any-key-to-continue%2F&amp;text=C%2B%2B%20Press%20any%20key%20to%20continue&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Farturito.net%2F2009%2F04%2F21%2Fc-plus-plus-press-any-key-to-continue%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://arturito.net/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>When I write some console application in Bloodshed Dev C++ or Visual Studio, I hate bringing up comand line and typing in the whole path to the program I&#8217;ve just written. I found two short ways of having &#8220;Press any key to continue&#8230;&#8221; before the console window disappears. One of them is a <strong>good</strong> one and the other is <strong>bad</strong>.</p>
<p>1. Good one<br />
<code><br />
int main()</p>
<p>{</p>
<p>// do something</p>
<p>cout<<"Press Enter to continue...";<br />
cin.get();<br />
}<br />
</code></p>
<p>Well, this one really is "Press Enter to continue...", which shouldn't be a problem <img src='http://arturito.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>2. Bad one<br />
<code><br />
int main()<br />
{</p>
<p>// do something</p>
<p>system.("PAUSE");<br />
}<br />
</code><br />
This one is very bad! If you want to know why, read this article:</p>
<p><a href="http://www.gidnetwork.com/b-61.html"></a>http://www.gidnetwork.com/b-61.html</p>
]]></content:encoded>
			<wfw:commentRss>http://arturito.net/2009/04/21/c-plus-plus-press-any-key-to-continue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C++ Delay Function</title>
		<link>http://arturito.net/2009/03/24/c-plus-plus-delay-function-dev-c-plus-plus-and-visual-studio/</link>
		<comments>http://arturito.net/2009/03/24/c-plus-plus-delay-function-dev-c-plus-plus-and-visual-studio/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 21:38:47 +0000</pubDate>
		<dc:creator>guru</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://arturito.net/?p=196</guid>
		<description><![CDATA[Tweet#include 
void delay(int n)
{
clock_t start_time, cur_time; start_time = clock();    while((clock() - start_time) < n * CLOCKS_PER_SEC)
{}
}
int main()
{
// do something
delay(5);
// delays 5 seconds
}

]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton196" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Farturito.net%2F2009%2F03%2F24%2Fc-plus-plus-delay-function-dev-c-plus-plus-and-visual-studio%2F&amp;text=C%2B%2B%20Delay%20Function&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Farturito.net%2F2009%2F03%2F24%2Fc-plus-plus-delay-function-dev-c-plus-plus-and-visual-studio%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://arturito.net/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p><code>#include <ctime></p>
<p>void delay(int n)<br />
{<br />
clock_t start_time, cur_time; start_time = clock();    while((clock() - start_time) < n * CLOCKS_PER_SEC)<br />
{}<br />
}</p>
<p>int main()<br />
{<br />
// do something<br />
delay(5);<br />
// delays 5 seconds<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://arturito.net/2009/03/24/c-plus-plus-delay-function-dev-c-plus-plus-and-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C++ Integer to String conversion</title>
		<link>http://arturito.net/2009/02/24/integer-to-string-conversion-in-cpp/</link>
		<comments>http://arturito.net/2009/02/24/integer-to-string-conversion-in-cpp/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 19:32:20 +0000</pubDate>
		<dc:creator>guru</dc:creator>
				<category><![CDATA[C++]]></category>

		<guid isPermaLink="false">http://arturito.net/?p=167</guid>
		<description><![CDATA[TweetI wrote this little function which converts integer type variable to string. Always very handy!

#include 
string toString(int n)
{
string str;
stringstream out;
out]]></description>
			<content:encoded><![CDATA[<div id="tweetbutton167" class="tw_button" style=""><a href="http://twitter.com/share?url=http%3A%2F%2Farturito.net%2F2009%2F02%2F24%2Finteger-to-string-conversion-in-cpp%2F&amp;text=C%2B%2B%20Integer%20to%20String%20conversion&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Farturito.net%2F2009%2F02%2F24%2Finteger-to-string-conversion-in-cpp%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://arturito.net/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div><p>I wrote this little function which converts integer type variable to string. Always very handy!</p>
<p><code><br />
#include <sstream></p>
<p>string toString(int n)<br />
{<br />
string str;<br />
stringstream out;<br />
out<<br />
return str = out.str();<br />
}<br />
</code><br />
<a href="http://www.bloodshed.net/devcpp.html"><img class="size-full wp-image-169 alignright" title="Dev C++" src="http://dartharturito.files.wordpress.com/2009/02/box_logo.jpg" alt="box_logo" width="174" height="76" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://arturito.net/2009/02/24/integer-to-string-conversion-in-cpp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

