<?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>C Archives &#8211; Beer &amp; Skittles</title>
	<atom:link href="https://nelson.ph/archives/programming/c/feed/" rel="self" type="application/rss+xml" />
	<link>https://nelson.ph/archives/programming/c/</link>
	<description>Life is not all beer and skittles</description>
	<lastBuildDate>Sun, 08 Mar 2020 18:44:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
<site xmlns="com-wordpress:feed-additions:1">177521838</site>	<item>
		<title>Open and Closed Hashing in C</title>
		<link>https://nelson.ph/2011/03/open-and-closed-hashing-in-c/</link>
					<comments>https://nelson.ph/2011/03/open-and-closed-hashing-in-c/#respond</comments>
		
		<dc:creator><![CDATA[Nelson]]></dc:creator>
		<pubDate>Thu, 17 Mar 2011 01:12:35 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<guid isPermaLink="false">http://log.flirt-wind.net/?p=951</guid>

					<description><![CDATA[<p>Again, I&#8217;m under the impression that you&#8217;ve done your assignment before coming here. I had this during my postgrad certification. Those were the bloody days that proved that my undergraduate years were nothing but a prelude to hell. Open: cells contain pointers to linked lists; collisions and a handful of inputs can be efficiently handled [&#8230;]</p>
<p>The post <a href="https://nelson.ph/2011/03/open-and-closed-hashing-in-c/">Open and Closed Hashing in C</a> appeared first on <a href="https://nelson.ph">Beer &amp; Skittles</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Again, I&#8217;m under the impression that you&#8217;ve done your <a href="http://en.wikipedia.org/wiki/Hash_table" target="_blank" rel="noopener noreferrer">assignment</a> before coming here. I had this during my postgrad certification. Those were the bloody days that proved that my undergraduate years were nothing but a prelude to hell.</p>
<ul>
<li><strong>Open:</strong> cells contain pointers to linked lists; collisions and a handful of inputs can be efficiently handled
<pre class="EnlighterJSRAW" data-enlighter-language="c">/* point each cell to its respective (empty) Stack */
for(i = 0; i &lt; MAX_VALUE; i++) {
   Stack *s = malloc(sizeof(Stack));
   initStack(s);
   oh-&gt;cell[i] = s;
}
</pre>
</li>
<li><strong>Closed:</strong> cells can contain two elements; makes use of a rehashing function to constantly search for an available cell when a collision occurs
<pre class="EnlighterJSRAW" data-enlighter-language="c">for(i = 0; i &lt; MAX_VALUE; i++) {
   for(j = 0; j &lt; 2; j++) {
      ch-&gt;cell[i][j] = 0;
   }
}
</pre>
</li>
</ul>
<p>Input validation was kinda neglected (and I&#8217;m obviously not into adding them right now) so, children, refrain from inputting non-numeric keys, okay?</p>
<blockquote><p>
<strong><a href="https://nelsoft.org/files/code/Hush.zip">Hush.zip</a></strong></p></blockquote>
<p>The post <a href="https://nelson.ph/2011/03/open-and-closed-hashing-in-c/">Open and Closed Hashing in C</a> appeared first on <a href="https://nelson.ph">Beer &amp; Skittles</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nelson.ph/2011/03/open-and-closed-hashing-in-c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">951</post-id>	</item>
		<item>
		<title>Running C and gcc in Windows (XP)</title>
		<link>https://nelson.ph/2009/07/running-c-and-gcc-in-windows-xp/</link>
					<comments>https://nelson.ph/2009/07/running-c-and-gcc-in-windows-xp/#respond</comments>
		
		<dc:creator><![CDATA[Nelson]]></dc:creator>
		<pubDate>Tue, 21 Jul 2009 15:25:03 +0000</pubDate>
				<category><![CDATA[C]]></category>
		<guid isPermaLink="false">http://log.flirt-wind.net/?p=485</guid>

					<description><![CDATA[<p>If you&#8217;ve been conditioned that coding and running C codes in Windows is nearly impossible, think again. It&#8217;s actually as easy as X-Y-Z (c&#8217;mon people, A-B-C is so yesterday). Download Dev-C++ Install the software Go to File &#62; New and do your thing Execute &#62; Compile (Ctrl+F9) Execute &#62; Run (Ctrl+F10) If you&#8217;re familiar with [&#8230;]</p>
<p>The post <a href="https://nelson.ph/2009/07/running-c-and-gcc-in-windows-xp/">Running C and gcc in Windows (XP)</a> appeared first on <a href="https://nelson.ph">Beer &amp; Skittles</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you&#8217;ve been conditioned that coding and running C codes in Windows is nearly impossible, think again. It&#8217;s actually as easy as X-Y-Z (c&#8217;mon people, A-B-C is so yesterday).</p>
<p><span id="more-485"></span></p>
<ol>
<li>Download <a href="http://www.bloodshed.net/devcpp.html" target="_blank">Dev-C++</a></li>
<li>Install the software</li>
<li>Go to <em>File &gt; New</em> and do your thing</li>
<li><em>Execute &gt; Compile</em> (Ctrl+F9)</li>
<li><em>Execute &gt; Run</em> (Ctrl+F10)</li>
</ol>
<p>If you&#8217;re familiar with gcc and is more comfortable using it, then follow the steps below:</p>
<ol>
<li>Locate your Dev-C++ installation directory</li>
<li>Go to <strong>System Properties</strong> (via Control Panel or by right-clicking My Computer) and jump to the <strong>Advanced</strong> tab</li>
<li>Click on Environment Variables</li>
<li>Locate the <strong>Path</strong> variable and click <em>Edit</em></li>
<li>Put a semicolon (separator) at the end of the <strong>Variable value</strong></li>
<li>Add <em>[Dev-C++ directory]/bin</em></li>
<li>Finish with an OK</li>
</ol>
<p>You can now go to the Command Prompt to execute your C codes. In order to do so, you must be in the directory (folder) where your file is saved.</p>
<blockquote><p>
&gt;gcc -o executable.o filename.c<br />
&gt;./executable.o
</p></blockquote>
<p><strong>AN:</strong> Although Dev-C++ offers convenience in compiling and running, it apparently immediately closes the Command Prompt window after running the code without you getting the chance to see the output. In such case, you&#8217;ll have to add a <em>system(&#8220;pause&#8221;);</em> at the end of your code.</p>
<p>The post <a href="https://nelson.ph/2009/07/running-c-and-gcc-in-windows-xp/">Running C and gcc in Windows (XP)</a> appeared first on <a href="https://nelson.ph">Beer &amp; Skittles</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://nelson.ph/2009/07/running-c-and-gcc-in-windows-xp/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">485</post-id>	</item>
	</channel>
</rss>
