<?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>Everything In Between &#187; C/C++</title>
	<atom:link href="http://maymay.net/blog/category/programming/cc/feed/" rel="self" type="application/rss+xml" />
	<link>http://maymay.net/blog</link>
	<description>The brutally honest, first-person account of Meitar Moscovitz&#039;s life.</description>
	<lastBuildDate>Tue, 22 May 2012 03:33:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Random Thoughts and Fibonacci Sequences</title>
		<link>http://maymay.net/blog/2004/10/21/random-thoughts-and-fibonacci-sequences/</link>
		<comments>http://maymay.net/blog/2004/10/21/random-thoughts-and-fibonacci-sequences/#comments</comments>
		<pubDate>Thu, 21 Oct 2004 08:06:27 +0000</pubDate>
		<dc:creator>Meitar</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">/?p=42</guid>
		<description><![CDATA[I know I promised more writings on bipolar disorder. In a rather fitting and repetitive twist of fate, I was feeling too moody to write about being moody. Instead, in order to keep myself from feeling unproductive, I started learning C programming. After trying the obligatory &#8220;hello world&#8221; program, I made a simple guess-my-birthday game. [...]]]></description>
			<content:encoded><![CDATA[<p>I know I promised more writings on bipolar disorder. In a rather fitting and repetitive twist of fate, I was feeling too moody to write about being moody.</p>
<p>Instead, in order to keep myself from feeling unproductive, I started learning C programming. After trying the obligatory &ldquo;hello world&rdquo; program, I made a simple guess-my-birthday game. After that, I wanted to learn how to parse command-line options and arguments. I first needed an application that could take options, however, so I wrote a quick &#8216;n dirty Fibonacci sequence calculator. The first incarnation used an array to allocate some appropriate chunks of memory and then performed the calculations in one pass over the array.</p>
<p>It was simplistic, but wasteful. After posting a messag to the Orkut C Programming community, it was suggested that I use a recursive function to calculate the sequence. One number at a time is simpler and more memory-efficient. So I re-wrote the core function. Finally, I added switches for both starting numbers and the length of the sequence option.</p>
<p>Would like to see if I can add a few other options just for similar academic purposes like a delimiter (instead of the default newline) and an output file.</p>
<p>Other thoughts:</p>
<ul>
<li>Really don&#8217;t like the idea of keeping two separate sites (one for <acronym title="BiPolar Disorder">BPD</acronym>, one for my work). I think I&#8217;ll combine both blogs into one and just turn feed the Maymay Media site blog postings from appropriate categories that I post here.</li>
<li>Both these sites need redesigns. Would be willing to hire designers to get the job done.</li>
<li>I missed the opportunity to register to vote. That&#8217;s frustrating but I have only myself to blame.</li>
<li>Apartment hunting has proven fruitless for the time being. I also hate the idea of not living within three blocks of everything.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://maymay.net/blog/2004/10/21/random-thoughts-and-fibonacci-sequences/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Outsmarted again!</title>
		<link>http://maymay.net/blog/2004/10/12/outsmarted-again/</link>
		<comments>http://maymay.net/blog/2004/10/12/outsmarted-again/#comments</comments>
		<pubDate>Wed, 13 Oct 2004 02:51:31 +0000</pubDate>
		<dc:creator>Meitar</dc:creator>
				<category><![CDATA[C/C++]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">/?p=40</guid>
		<description><![CDATA[I&#8217;ve been learning how to create C programs, for no real reason other than academic interest. Tonight I gave it my second shot and wrote a program that should convert your weight from pounds to kilograms. So I showed it to Danica but, as usual, she was smarter than the program I wrote: Crap.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been learning how to create C programs, for no real reason other than academic interest. Tonight I gave it my second shot and wrote a program that <em>should</em> convert your weight from pounds to kilograms. So I showed it to Danica but, as usual, she was smarter than the program I wrote:</p>
<p><img alt="Danica outsmarts my program by supplying unexpected input to a question about her weight." src="/bpd/images/blogpics/iotest_screenshot.jpg" /></p>
<p>Crap.</p>
]]></content:encoded>
			<wfw:commentRss>http://maymay.net/blog/2004/10/12/outsmarted-again/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

