I've taken the liberty of uploading a few of my code samples here for your review. The games are Windows code, and you'll probably want 7-Zip to open the packages. We didn't use .zip files because we had to email these packages to their ultimate destinations, and nobody would touch standard zip archives that contained executable binaries. You won't any production code here, nor do I link to the (readily available) sources of Jim's First Time Script, simply because that's something I do hack on when I get an idea into my head.
This was a quick XNA game I made for a class. It isn't much of a game, and I had to whittle down the game to something I could implement in a couple of weeks, but it is something I've posted here anyway.
Again, this was made for the same class, with a few other people. The concept was mostly mine: we'd string a bunch of twisted puzzle games together by using a few Internet memes.
Again, a quick class project, this time with significantly less utility. It's a Unix program (don't run this on Windows) in which I go through the trouble of implementing a remote procedure call. The client is heavily edited, despite instructions to the contrary, simply because it would not pass GCC if I didn't.
The trick was to get the solution running in 13 processes or less, as the Alpha box I wrote this on wouldn't let me do things otherwise. The STL makes a brief appearance in my parser, but the rest of it will run through a C compiler without a problem.
The Tower of Hanoi is a fairly simply solved puzzle, even if it takes 2number of discs - 1 moves to finish. This is a Qt 4 program that will print out the optimal solution. I believe this contains Linux, Mac, and Windows binaries, if you want to run it.
I like to play RPGs. And while nothing's quite like a d20, sometimes all I have is my notebook. I threw this together in about 15 minutes as a command line program that rolls dice, then prints the results and their sum. Simply type roll XdY
where X and Y are integers, and it will display the results. Alternately, I used this particular bit of code to create this online dice roller with Django. It's intentionally not as flexible as the original, using only common side counts. I don't expect to need to roll a d3 any time soon, at least not when I don't have the original program on my computer.