<?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>Strainu onLine &#187; C++</title>
	<atom:link href="http://www.strainu.ro/category/programming/c_plus_plus/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.strainu.ro</link>
	<description>Blogul unui automatist</description>
	<lastBuildDate>Fri, 28 Oct 2011 15:46:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>ProMec</title>
		<link>http://www.strainu.ro/software/38/</link>
		<comments>http://www.strainu.ro/software/38/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 15:07:04 +0000</pubDate>
		<dc:creator>Strainu</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Mecanică]]></category>

		<guid isPermaLink="false">http://www.strainu.ro/site/?p=459</guid>
		<description><![CDATA[ProMec is a small graphical project I did for the Mecanics course in the first year of faculty at UPB, with prof. A. Craifaleanu. It simulates the movement of a complex system made out of several bars. The software is distributed under CC-GNU GPL license. Download (source) Share and Enjoy:]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.strainu.ro/Poze/screen_ProMec.jpg" border="0" alt="Preview" width="160" height="120" align="left" /></p>
<p><strong>ProMec</strong> is a small graphical project I did for the Mecanics course in the first year of faculty at UPB, with prof. A. Craifaleanu. It simulates the movement of a complex system made out of several bars.<br />
<span id="more-459"></span></p>
<p>The software is distributed under <a href="http://creativecommons.org/licenses/GPL/2.0/">CC-GNU GPL license</a>.</p>
<p><a href="http://www.strainu.ro/tracker/downi.php?id=ProMec" target="_blank"><strong>Download</strong></a> (<a href="http://www.strainu.ro/tracker/downi.php?id=ProMec_src" target="_blank"><strong>source</strong></a>)</p>
<div class='sociable'><div><span class='sociable-tagline'><strong>Share and Enjoy:</strong></span></div><ul><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F38%2F&amp;t=ProMec" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=ProMec%20-%20http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F38%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li><li><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F38%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a></li><li><a rel="nofollow" target="_blank"  href="mailto:?subject=ProMec&amp;body=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F38%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/email_link.png" class="sociable-img sociable-hovers" title="email" alt="email" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F38%2F&amp;title=ProMec&amp;bodytext=%0D%0A%0D%0AProMec%20is%20a%20small%20graphical%20project%20I%20did%20for%20the%20Mecanics%20course%20in%20the%20first%20year%20of%20faculty%20at%20UPB%2C%20with%20prof.%20A.%20Craifaleanu.%20It%20simulates%20the%20movement%20of%20a%20complex%20system%20made%20out%20of%20several%20bars.%0D%0A%0D%0A%0D%0AThe%20software%20is%20distributed%20under%20CC-GN" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F38%2F&amp;title=ProMec" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.strainu.ro/software/38/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Talk</title>
		<link>http://www.strainu.ro/software/37/</link>
		<comments>http://www.strainu.ro/software/37/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 15:01:44 +0000</pubDate>
		<dc:creator>Strainu</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[WebBrowse]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Chat]]></category>

		<guid isPermaLink="false">http://www.strainu.ro/site/?p=456</guid>
		<description><![CDATA[Talk is a simple chat program. It uses the very simple Cesar code to encrypt the messages. Select the mode (client or server), the IP address and the port, then press “Conectare” ( “Asteapta” for the server), and, if there is another user, the message area will be activated. The software is distributed under CC-GNU [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.strainu.ro/Poze/screen_Talk.jpg" border="0" alt="Preview" width="160" height="120" align="left" /></p>
<p><strong>Talk</strong> is a simple chat program. It uses the very simple Cesar code to encrypt the messages. Select the mode (client or server), the IP address and the port, then press “Conectare” ( “Asteapta” for the server), and, if there is another user, the message area will be activated.<br />
<span id="more-456"></span></p>
<p>The software is distributed under <a href="http://creativecommons.org/licenses/GPL/2.0/">CC-GNU GPL license</a>.</p>
<p><a href="http://www.strainu.ro/tracker/downi.php?id=Talk" target="_blank"><strong>Download</strong></a> (<a href="http://www.strainu.ro/tracker/downi.php?id=Talk_src" target="_blank"><strong>source</strong></a>)</p>
<div class='sociable'><div><span class='sociable-tagline'><strong>Share and Enjoy:</strong></span></div><ul><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F37%2F&amp;t=Talk" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=Talk%20-%20http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F37%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li><li><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F37%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a></li><li><a rel="nofollow" target="_blank"  href="mailto:?subject=Talk&amp;body=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F37%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/email_link.png" class="sociable-img sociable-hovers" title="email" alt="email" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F37%2F&amp;title=Talk&amp;bodytext=%0D%0A%0D%0ATalk%20is%20a%20simple%20chat%20program.%20It%20uses%20the%20very%20simple%20Cesar%20code%20to%20encrypt%20the%20messages.%20Select%20the%20mode%20%28client%20or%20server%29%2C%20the%20IP%20address%20and%20the%20port%2C%20then%20press%20%E2%80%9CConectare%E2%80%9D%20%28%20%E2%80%9CAsteapta%E2%80%9D%20for%20the%20server%29%2C%20and%2C%20if%20there%20is%20another%20user" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F37%2F&amp;title=Talk" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.strainu.ro/software/37/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Query</title>
		<link>http://www.strainu.ro/software/36/</link>
		<comments>http://www.strainu.ro/software/36/#comments</comments>
		<pubDate>Sun, 24 Feb 2008 14:59:31 +0000</pubDate>
		<dc:creator>Strainu</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[WebBrowse]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Whois]]></category>

		<guid isPermaLink="false">http://www.strainu.ro/site/?p=454</guid>
		<description><![CDATA[Query is a whois-like program that allows you to find the status of a domain or IP address. He uses Whois servers to obtain informations like the domain owner, expiration data, etc. The software is distributed under CC-GNU GPL license. Download (source) Share and Enjoy:]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.strainu.ro/Poze/screen_Query.jpg" border="0" alt="Preview" width="160" height="120" align="left" /></p>
<p><strong>Query</strong> is a whois-like program that allows you to find the status of a domain or IP address. He uses Whois servers to obtain informations like the domain owner, expiration data, etc.</p>
<p>The software is distributed under <a href="http://creativecommons.org/licenses/GPL/2.0/">CC-GNU GPL license</a>.</p>
<p><a href="http://www.strainu.ro/tracker/downi.php?id=Query" target="_blank"><strong>Download</strong></a> (<a href="http://www.strainu.ro/tracker/downi.php?id=Query_src" target="_blank"><strong>source</strong></a>)</p>
<div class='sociable'><div><span class='sociable-tagline'><strong>Share and Enjoy:</strong></span></div><ul><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F36%2F&amp;t=Query" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=Query%20-%20http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F36%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li><li><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F36%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a></li><li><a rel="nofollow" target="_blank"  href="mailto:?subject=Query&amp;body=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F36%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/email_link.png" class="sociable-img sociable-hovers" title="email" alt="email" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F36%2F&amp;title=Query&amp;bodytext=%0D%0A%0D%0AQuery%20is%20a%20whois-like%20program%20that%20allows%20you%20to%20find%20the%20status%20of%20a%20domain%20or%20IP%20address.%20He%20uses%20Whois%20servers%20to%20obtain%20informations%20like%20the%20domain%20owner%2C%20expiration%20data%2C%20etc.%0D%0A%0D%0AThe%20software%20is%20distributed%20under%20CC-GNU%20GPL%20license.%0D%0A%0D%0ADown" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F36%2F&amp;title=Query" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.strainu.ro/software/36/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The const keyword (part 2)</title>
		<link>http://www.strainu.ro/programming/c/the-const-keyword-part-2/</link>
		<comments>http://www.strainu.ro/programming/c/the-const-keyword-part-2/#comments</comments>
		<pubDate>Tue, 29 May 2007 18:54:04 +0000</pubDate>
		<dc:creator>Strainu</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[const]]></category>

		<guid isPermaLink="false">http://blog.strainu.ro/personal/the-const-keyword-part-2/</guid>
		<description><![CDATA[In part 1 we introduced the const keyword. Today we&#8217;ll talk about constant pointers. Let&#8217;s say you want to define a constant pointer. Which of the following declarations will you use? const int* v1; int* const v2; const int * const v3; The answer is: the second or the third. The first declaration defines a [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>In <a href="http://codertricks.strainu.ro/c/2007/05/24/the-const-keyword-part-1/" target="_blank">part 1</a> we introduced the <em>const</em> keyword. Today we&#8217;ll talk about constant pointers.</p></blockquote>
<p>Let&#8217;s say you want to define a constant pointer. Which of the following declarations will you use?</p>
<div class="codecolorer-container c default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="c codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333;">const</span> <span style="color: #993333;">int</span><span style="color: #339933;">*</span> v1<span style="color: #339933;">;</span><br />
<span style="color: #993333;">int</span><span style="color: #339933;">*</span> <span style="color: #993333;">const</span> v2<span style="color: #339933;">;</span><br />
<span style="color: #993333;">const</span> <span style="color: #993333;">int</span> <span style="color: #339933;">*</span> <span style="color: #993333;">const</span> v3<span style="color: #339933;">;</span></div></div>
<p>The answer is: the second or the third. The first declaration defines a pointer to a constant integer and the third one defines a constant pointer to a constant integer.</p>
<p>Another interesting case is when defining a constant char array (credits go to <a href="http://udrepper.livejournal.com/15119.html" target="_blank">Ulrich Drepper</a>, link via <a href="http://cs.pub.ro/~ixlabs/?cat=8" target="_blank">RazvanD</a>):</p>
<div class="codecolorer-container c default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="c codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #993333;">void</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
<span style="color: #993333;">const</span> <span style="color: #993333;">char</span> s<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;hello&quot;</span><span style="color: #339933;">;</span><br />
strcpy <span style="color: #009900;">&#40;</span>s<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;bye&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
puts <span style="color: #009900;">&#40;</span>s<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<p>Although this code will give a warning (<em>passing `const char *&#8217; as argument 1 of `strcpy(char *, const char *)&#8217; discards qualifiers</em> is the exact message on Dev-C++), it will run, because s is allocated in the heap, so it is treated much like a pointer. You can force the value to be constant by adding the <em>static</em> keyword, wich will force the compiler to allocate <strong>s</strong> in read-only memory:</p>
<div class="codecolorer-container c default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="c codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333;">static</span> <span style="color: #993333;">const</span> <span style="color: #993333;">char</span> s<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;hello&quot;</span><span style="color: #339933;">;</span></div></div>
<div class='sociable'><div><span class='sociable-tagline'><strong>Share and Enjoy:</strong></span></div><ul><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.strainu.ro%2Fprogramming%2Fc%2Fthe-const-keyword-part-2%2F&amp;t=The%20const%20keyword%20%28part%202%29" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=The%20const%20keyword%20%28part%202%29%20-%20http%3A%2F%2Fwww.strainu.ro%2Fprogramming%2Fc%2Fthe-const-keyword-part-2%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li><li><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.strainu.ro%2Fprogramming%2Fc%2Fthe-const-keyword-part-2%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a></li><li><a rel="nofollow" target="_blank"  href="mailto:?subject=The%20const%20keyword%20%28part%202%29&amp;body=http%3A%2F%2Fwww.strainu.ro%2Fprogramming%2Fc%2Fthe-const-keyword-part-2%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/email_link.png" class="sociable-img sociable-hovers" title="email" alt="email" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.strainu.ro%2Fprogramming%2Fc%2Fthe-const-keyword-part-2%2F&amp;title=The%20const%20keyword%20%28part%202%29&amp;bodytext=In%20part%201%20we%20introduced%20the%20const%20keyword.%20Today%20we%27ll%20talk%20about%20constant%20pointers.%0D%0ALet%27s%20say%20you%20want%20to%20define%20a%20constant%20pointer.%20Which%20of%20the%20following%20declarations%20will%20you%20use%3F%0D%0A%0D%0A%0D%0Aconst%20int%2A%20v1%3B%0D%0Aint%2A%20const%20v2%3B%0D%0Aconst%20int%20%2A%20const%20v3%3B%0D%0A%0D%0A%0D%0AT" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.strainu.ro%2Fprogramming%2Fc%2Fthe-const-keyword-part-2%2F&amp;title=The%20const%20keyword%20%28part%202%29" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.strainu.ro/programming/c/the-const-keyword-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The const keyword (part 1)</title>
		<link>http://www.strainu.ro/programming/c/the-const-keyword-part-1/</link>
		<comments>http://www.strainu.ro/programming/c/the-const-keyword-part-1/#comments</comments>
		<pubDate>Wed, 23 May 2007 21:48:55 +0000</pubDate>
		<dc:creator>Strainu</dc:creator>
				<category><![CDATA[C]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[const]]></category>

		<guid isPermaLink="false">http://blog.strainu.ro/personal/the-const-keyword-part-1/</guid>
		<description><![CDATA[This article will not actually present any tricks, it will be an introduction in the const keyword. In part 2, we will present the const and volatile pointers, which behave a little weird. First of all, let&#8217;s see what the const modifier means in the C standard. Basically, a const variable is one who&#8217;s value [...]]]></description>
			<content:encoded><![CDATA[<p>This article will not actually present any tricks, it will be an introduction in the <em>const</em> keyword. In part 2, we will present the <strong>const and volatile pointers</strong>, which behave a little weird.</p>
<p>First of all, let&#8217;s see what the <strong>const</strong> modifier means  in the <a href="http://www.iso-9899.info/wiki/Main_Page" target="_blank">C standard</a>. Basically, a const variable is one who&#8217;s value can&#8217;t be changed. Actually,  things are not so simple &#8211; as we&#8217;ll see later, you can change a constant variable. The standard states that &#8220;If an attempt is made to modify an object defined with a const-qualified type through use of an lvalue with non-const-qualified type, the behavior is undefined.&#8221;  On some architectures, constant variables are put in a special section (sometimes called <em>.rodata</em> &#8211; from Read Only DATA) of the program by the compiler.</p>
<p>If you want to define a constant in C/C++, you can write:</p>
<div class="codecolorer-container c default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="c codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333;">const</span> <span style="color: #993333;">int</span> v1 <span style="color: #339933;">=</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//the usual way</span><br />
<span style="color: #993333;">int</span> <span style="color: #993333;">const</span> v2 <span style="color: #339933;">=</span> <span style="color: #0000dd;">1</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//also legal</span></div></div>
<p>Both declarations mean the same thing: define a new integer with a fixed value. So, if you want to change the value of v1, how would you do it? By using pointers:</p>
<div class="codecolorer-container c default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="c codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333;">const</span> <span style="color: #993333;">int</span> v1 <span style="color: #339933;">=</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//define a constant</span><br />
<span style="color: #993333;">int</span><span style="color: #339933;">*</span> v2 <span style="color: #339933;">=</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span>v1<span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//define a pointer to v1</span><br />
<span style="color: #339933;">*</span>v2 <span style="color: #339933;">=</span> <span style="color: #0000dd;">5</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//change the value</span></div></div>
<p>Of course, you shouldn&#8217;t do that, as the are no guarantees that the result will be what you expect it to be, but with most compilers, v1 will be 5 after running the code presented above.</p>
<div class='sociable'><div><span class='sociable-tagline'><strong>Share and Enjoy:</strong></span></div><ul><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.strainu.ro%2Fprogramming%2Fc%2Fthe-const-keyword-part-1%2F&amp;t=The%20const%20keyword%20%28part%201%29" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=The%20const%20keyword%20%28part%201%29%20-%20http%3A%2F%2Fwww.strainu.ro%2Fprogramming%2Fc%2Fthe-const-keyword-part-1%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li><li><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.strainu.ro%2Fprogramming%2Fc%2Fthe-const-keyword-part-1%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a></li><li><a rel="nofollow" target="_blank"  href="mailto:?subject=The%20const%20keyword%20%28part%201%29&amp;body=http%3A%2F%2Fwww.strainu.ro%2Fprogramming%2Fc%2Fthe-const-keyword-part-1%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/email_link.png" class="sociable-img sociable-hovers" title="email" alt="email" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.strainu.ro%2Fprogramming%2Fc%2Fthe-const-keyword-part-1%2F&amp;title=The%20const%20keyword%20%28part%201%29&amp;bodytext=This%20article%20will%20not%20actually%20present%20any%20tricks%2C%20it%20will%20be%20an%20introduction%20in%20the%20const%20keyword.%20In%20part%202%2C%20we%20will%20present%20the%20const%20and%20volatile%20pointers%2C%20which%20behave%20a%20little%20weird.%0D%0A%0D%0AFirst%20of%20all%2C%20let%27s%20see%20what%20the%20const%20modifier%20means%20%20in%20" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.strainu.ro%2Fprogramming%2Fc%2Fthe-const-keyword-part-1%2F&amp;title=The%20const%20keyword%20%28part%201%29" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.strainu.ro/programming/c/the-const-keyword-part-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Digital/analogue clock</title>
		<link>http://www.strainu.ro/software/21/</link>
		<comments>http://www.strainu.ro/software/21/#comments</comments>
		<pubDate>Thu, 24 Aug 2006 15:05:15 +0000</pubDate>
		<dc:creator>Strainu</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[DevC++]]></category>
		<category><![CDATA[WinAPI]]></category>

		<guid isPermaLink="false">http://www.strainu.ro/site/?p=421</guid>
		<description><![CDATA[Digital/analogue clock A DevC++ program that shows an analogue or digital clock. The program shows the usage of classes in C++ and the usage of Windows drawing functions. The software is distributed under CC-GNU GPL license. Download (source) Share and Enjoy:]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.strainu.ro/Poze/screen_Clock.jpg" border="0" alt="Preview" width="160" height="120" align="left" /></p>
<p><strong>Digital/analogue clock</strong> A DevC++ program that shows an analogue or digital clock. The program shows the usage of classes in C++ and the usage of Windows drawing functions.<br />
<span id="more-421"></span></p>
<p>The software is distributed under <a href="http://creativecommons.org/licenses/GPL/2.0/">CC-GNU GPL license</a>.</p>
<p><a href="http://www.strainu.ro/tracker/downi.php?id=ceas" target="_blank"><strong>Download</strong></a> (<a href="http://www.strainu.ro/tracker/downi.php?id=ceas_src" target="_blank"><strong>source</strong></a>)</p>
<div class='sociable'><div><span class='sociable-tagline'><strong>Share and Enjoy:</strong></span></div><ul><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F21%2F&amp;t=Digital%2Fanalogue%20clock" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=Digital%2Fanalogue%20clock%20-%20http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F21%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li><li><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F21%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a></li><li><a rel="nofollow" target="_blank"  href="mailto:?subject=Digital%2Fanalogue%20clock&amp;body=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F21%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/email_link.png" class="sociable-img sociable-hovers" title="email" alt="email" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F21%2F&amp;title=Digital%2Fanalogue%20clock&amp;bodytext=%0D%0A%0D%0ADigital%2Fanalogue%20clock%20A%20DevC%2B%2B%20program%20that%20shows%20an%20analogue%20or%20digital%20clock.%20The%20program%20shows%20the%20usage%20of%20classes%20in%20C%2B%2B%20and%20the%20usage%20of%20Windows%20drawing%20functions.%0D%0A%0D%0A%0D%0AThe%20software%20is%20distributed%20under%20CC-GNU%20GPL%20license.%0D%0A%0D%0ADownload%20%28sou" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F21%2F&amp;title=Digital%2Fanalogue%20clock" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.strainu.ro/software/21/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BlackJack (21)</title>
		<link>http://www.strainu.ro/software/3/</link>
		<comments>http://www.strainu.ro/software/3/#comments</comments>
		<pubDate>Fri, 23 Jun 2006 20:16:07 +0000</pubDate>
		<dc:creator>Strainu</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[WebBrowse]]></category>

		<guid isPermaLink="false">http://www.strainu.ro/site/?p=348</guid>
		<description><![CDATA[BlackJack (21) is a simple simulation of a Black Jack game. Is shows the usage of bitmaps as background for MFC applications. The software is distributed under CC-GNU GPL license. Download (source) Share and Enjoy:]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.strainu.ro/Poze/screen_21.jpg" border="0" alt="Preview" width="160" height="120" align="left" /></p>
<p><strong>BlackJack (21)</strong> is a simple simulation of a Black Jack game. Is shows the usage of bitmaps as background for MFC applications.<br />
<span id="more-348"></span><br />
The software is distributed under <a href="http://creativecommons.org/licenses/GPL/2.0/">CC-GNU GPL license</a>.</p>
<p><a href="http://www.strainu.ro/tracker/downi.php?id=21_exe" target="_blank"><strong>Download</strong></a> (<a href="http://www.strainu.ro/tracker/downi.php?id=21_src" target="_blank"><strong>source</strong></a>)</p>
<div class='sociable'><div><span class='sociable-tagline'><strong>Share and Enjoy:</strong></span></div><ul><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F3%2F&amp;t=BlackJack%20%2821%29" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=BlackJack%20%2821%29%20-%20http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F3%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li><li><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F3%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a></li><li><a rel="nofollow" target="_blank"  href="mailto:?subject=BlackJack%20%2821%29&amp;body=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F3%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/email_link.png" class="sociable-img sociable-hovers" title="email" alt="email" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F3%2F&amp;title=BlackJack%20%2821%29&amp;bodytext=%0D%0A%0D%0ABlackJack%20%2821%29%20is%20a%20simple%20simulation%20of%20a%20Black%20Jack%20game.%20Is%20shows%20the%20usage%20of%20bitmaps%20as%20background%20for%20MFC%20applications.%0D%0A%0D%0AThe%20software%20is%20distributed%20under%20CC-GNU%20GPL%20license.%0D%0A%0D%0ADownload%20%28source%29" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F3%2F&amp;title=BlackJack%20%2821%29" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.strainu.ro/software/3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ThePlayZone</title>
		<link>http://www.strainu.ro/software/2/</link>
		<comments>http://www.strainu.ro/software/2/#comments</comments>
		<pubDate>Fri, 23 Jun 2006 20:06:40 +0000</pubDate>
		<dc:creator>Strainu</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[WebBrowse]]></category>

		<guid isPermaLink="false">http://www.strainu.ro/site/?p=345</guid>
		<description><![CDATA[ThePlayZone is a simple mp3 player. It can read ID3v1 tags, the bitrate and frequency, and play m3u and pls playlists. The software is distributed under Licenţa CC-GNU GPL. Download (source) Share and Enjoy:]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.strainu.ro/Poze/screen_ThePlayZone.jpg" border="0" alt="Preview" width="160" height="120" align="left" /></p>
<p><strong>ThePlayZone</strong> is a simple mp3 player. It can read ID3v1 tags, the bitrate and frequency, and play <strong>m3u</strong> and <strong>pls</strong> playlists.<br />
<span id="more-345"></span><br />
The software is distributed under <a href="http://creativecommons.org/licenses/GPL/2.0/">Licenţa CC-GNU GPL</a>.</p>
<p><a href="http://www.strainu.ro/tracker/downi.php?id=ThePlayZone_exe" target="_blank"><strong>Download</strong></a> (<a href="http://www.strainu.ro/tracker/downi.php?id=ThePlayZone_src" target="_blank"><strong>source</strong></a>)</p>
<div class='sociable'><div><span class='sociable-tagline'><strong>Share and Enjoy:</strong></span></div><ul><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F2%2F&amp;t=ThePlayZone" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=ThePlayZone%20-%20http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F2%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li><li><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F2%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a></li><li><a rel="nofollow" target="_blank"  href="mailto:?subject=ThePlayZone&amp;body=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F2%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/email_link.png" class="sociable-img sociable-hovers" title="email" alt="email" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F2%2F&amp;title=ThePlayZone&amp;bodytext=%0D%0A%0D%0AThePlayZone%20is%20a%20simple%20mp3%20player.%20It%20can%20read%20ID3v1%20tags%2C%20the%20bitrate%20and%20frequency%2C%20and%20play%20m3u%20and%20pls%20playlists.%0D%0A%0D%0AThe%20software%20is%20distributed%20under%20Licen%C5%A3a%20CC-GNU%20GPL.%0D%0A%0D%0ADownload%20%28source%29" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F2%2F&amp;title=ThePlayZone" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.strainu.ro/software/2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The &#8220;Tree&#8221; Class</title>
		<link>http://www.strainu.ro/software/14/</link>
		<comments>http://www.strainu.ro/software/14/#comments</comments>
		<pubDate>Sun, 26 Mar 2006 20:40:35 +0000</pubDate>
		<dc:creator>Strainu</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Trees]]></category>

		<guid isPermaLink="false">http://www.strainu.ro/site/?p=407</guid>
		<description><![CDATA[The &#8220;Tree&#8221; Class A high-scool program to show the use of classes and trees represented in every possible way. It contains the following classes:arbore_m (trees represented by matrices); arbore_l (trees represented by lists); arbore_b (binary trees); arbore_cost (trees with costs). The software is distributed under CC-GNU GPL license. Download Share and Enjoy:]]></description>
			<content:encoded><![CDATA[<p><strong>The &#8220;Tree&#8221; Class</strong> A high-scool program to show the use of classes and trees represented in every possible way. It contains the following classes:<em>arbore_m</em> (trees represented by matrices); <em>arbore_l</em> (trees represented by lists); <em>arbore_b</em> (binary trees); <em>arbore_cost</em> (trees with costs).<br />
<span id="more-407"></span></p>
<p>The software is distributed under <a href="http://creativecommons.org/licenses/GPL/2.0/">CC-GNU GPL license</a>.</p>
<p><a href="http://www.strainu.ro/tracker/downi.php?id=Arbori" target="_blank"><strong>Download</strong></a></p>
<div class='sociable'><div><span class='sociable-tagline'><strong>Share and Enjoy:</strong></span></div><ul><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F14%2F&amp;t=The%20%22Tree%22%20Class" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=The%20%22Tree%22%20Class%20-%20http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F14%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li><li><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F14%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a></li><li><a rel="nofollow" target="_blank"  href="mailto:?subject=The%20%22Tree%22%20Class&amp;body=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F14%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/email_link.png" class="sociable-img sociable-hovers" title="email" alt="email" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F14%2F&amp;title=The%20%22Tree%22%20Class&amp;bodytext=The%20%22Tree%22%20Class%20A%20high-scool%20program%20to%20show%20the%20use%20of%20classes%20and%20trees%20represented%20in%20every%20possible%20way.%20It%20contains%20the%20following%20classes%3Aarbore_m%20%28trees%20represented%20by%20matrices%29%3B%20arbore_l%20%28trees%20represented%20by%20lists%29%3B%20arbore_b%20%28binary%20trees%29%3B%20" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F14%2F&amp;title=The%20%22Tree%22%20Class" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.strainu.ro/software/14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TicTacToe</title>
		<link>http://www.strainu.ro/software/5/</link>
		<comments>http://www.strainu.ro/software/5/#comments</comments>
		<pubDate>Sun, 26 Mar 2006 20:33:36 +0000</pubDate>
		<dc:creator>Strainu</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[C/C++]]></category>
		<category><![CDATA[WebBrowse]]></category>

		<guid isPermaLink="false">http://www.strainu.ro/site/?p=357</guid>
		<description><![CDATA[TicTacToe is a program to simulate a TicTacToe game. There are 3 difficulty levels, from the one with no AI to the one where you can&#8217;t win. The program also has a scoreboard. The software is distributed under CC-GNU GPL license. Download (source) Share and Enjoy:]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.strainu.ro/Poze/screen_TicTacToe.jpg" border="0" alt="Preview" width="160" height="120" align="left" /></p>
<p><strong>TicTacToe</strong> is a program to simulate a TicTacToe game. There are 3 difficulty levels, from the one with no AI to the one where you can&#8217;t win. The program also has a scoreboard.<br />
<span id="more-357"></span></p>
<p>The software is distributed under <a href="http://creativecommons.org/licenses/GPL/2.0/">CC-GNU GPL license</a>.</p>
<p><a href="http://www.strainu.ro/tracker/downi.php?id=TicTacToe_exe" target="_blank"><strong>Download</strong></a> (<a href="http://www.strainu.ro/tracker/downi.php?id=TicTacToe_src" target="_blank"><strong>source</strong></a>)</p>
<div class='sociable'><div><span class='sociable-tagline'><strong>Share and Enjoy:</strong></span></div><ul><li><a rel="nofollow" target="_blank"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F5%2F&amp;t=TicTacToe" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/facebook.png" class="sociable-img sociable-hovers" title="Facebook" alt="Facebook" /></a></li><li><a rel="nofollow" target="_blank"  href="http://twitter.com/home?status=TicTacToe%20-%20http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F5%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/twitter.png" class="sociable-img sociable-hovers" title="Twitter" alt="Twitter" /></a></li><li><a rel="nofollow" target="_blank"  href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F5%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/identica.png" class="sociable-img sociable-hovers" title="Identi.ca" alt="Identi.ca" /></a></li><li><a rel="nofollow" target="_blank"  href="mailto:?subject=TicTacToe&amp;body=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F5%2F" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/email_link.png" class="sociable-img sociable-hovers" title="email" alt="email" /></a></li><li><a rel="nofollow" target="_blank" title="Add to favorites" href="#" onclick="AddToFavorites(); return false;"><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/addtofavorites.png" class="sociable-img sociable-hovers" title="Add to favorites" alt="Add to favorites" /></a></li><li><a rel="nofollow" target="_blank"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F5%2F&amp;title=TicTacToe&amp;bodytext=%0D%0A%0D%0ATicTacToe%20is%20a%20program%20to%20simulate%20a%20TicTacToe%20game.%20There%20are%203%20difficulty%20levels%2C%20from%20the%20one%20with%20no%20AI%20to%20the%20one%20where%20you%20can%27t%20win.%20The%20program%20also%20has%20a%20scoreboard.%0D%0A%0D%0A%0D%0AThe%20software%20is%20distributed%20under%20CC-GNU%20GPL%20license.%0D%0A%0D%0ADownload%20" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/digg.png" class="sociable-img sociable-hovers" title="Digg" alt="Digg" /></a></li><li><a rel="nofollow" target="_blank"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.strainu.ro%2Fsoftware%2F5%2F&amp;title=TicTacToe" ><img src="http://www.strainu.ro/site/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png" class="sociable-img sociable-hovers" title="StumbleUpon" alt="StumbleUpon" /></a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.strainu.ro/software/5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

