One of these days I’ll actually know how to program c++ pretty well, and when that happens, I plan to write some kickass software. But when that happens, I figured it would be pretty amusing to look back at my very first c++ program (besides the mandatory “Hello World!” app).
Write a program that dispenses change. The program should read the amount of the purchase and the amount paid and then display the number of dollars, quarters, dimes, nickels, and pennies given in change.
Actually if you keep reading, they tell you the wrong way to do it, as a “hint”. Jerks.
But notwithstanding, this is what I wrote:
I promise, there was lots more whitespace in the actual program. Wordpress is just being stupid. Here's the file for download: ChangeDispenser.cpp.
Warning: Don't cheat off me.
UPDATE 10-19-09: Fixed a bug in how pennies were calculated.
UPDATE 11-01-09: Fixed formatting / lack of whitespace.
Yeah! That’s an awesome enough name for the sequel to my first jump.
I went skydiving with Cliff on Sunday, but I’m just barely getting around to posting stuff here. I’ve got a couple videos, and a ton of pictures.
Here’s the video shot by Vladmir at Skydiving Snohomish:
http://www.vimeo.com/6916655
UPDATE: Apparently Flickr limits videos to 90 seconds… working on Plan B (since YouTube is being stupid about the music embedded in the video).
UPDATE 2: We’ll see if Vimeo works…
Here’s the video that Cris took of me and Cliff landing:
Here’s the pictures:
For those Minty iPhone users who haven’t yet downloaded the app, you should get it today!
You know those times when you’re bored, and you turn to your phone for help? Well, if you get done reading email, texting aimlessly, and playing your favorite puzzle game, now you can download your financial transactions and categorize them. See?! I knew you’d be excited.
No, I’m not joking. I actually have been meaning to get a better handle on my budget, and one of the prerequisites is to know what kind of stuff you’re spending the money on. So yes, I will actually be making use of this seemingly boring feature.
But I’m also a major Excel geek, so your mileage may vary.
I’ve been thinking about how fun it was to share with everyone using F.R.A.Z. (Fraz Radio, A to Zed). So today I’m doing Music Monday. Pretty much that consists of me putting some music on here (because today is Monday).
The first song is one that I particularly like today: Avenged Sevenfold – Afterlife. Enjoy!
UPDATE: I just realized that this stupid iMeem embed doesn’t play the full song. I guess I’ll have to find something better…
UPDATE 2: Here’s the solution.
Shit. Supreme Commander 2 looks like Demigod.
The leaked screenshot may look cool, but look at the angle. It’s almost a Diablo-style view. That might not worry me on it’s own, since you can get fairly low-to-the-ground screenshots in Supreme anyway, but look at the map. It’s urban combat, with troops meeting at a chokepoint. Very tactical stuff, as opposed to strategic level.
Now, this may just be continued paranoia, but the trailer is a teaser, and it gets oddly detailed about the storyline– which nobody I know cares about. For SupCom 1, all you need to know is that there are 3 factions that have been warring for years, and you’re one of them.
I will grant you– StarCraft pulled off storyline pretty well, and even had some tactical missions in their single player campaigns. But Blizzard also didn’t release Demigod right before StarCraft, either.
So I finally upgraded my Xbox to the new Xbox experience. Of course, the first thing I did was create my avatar. I was trying to make it as close to reality as possible because I’ve seen some people that bear an uncanny resemblance to their avatar. (According to Dennis, I failed– my hair is blond, no matter what I tell myself.)
Anyway, moving right along. When I was done with it, I was thinking, “Alright. Now that is me.” Or so it was at first. But after about 5 minutes of this annoying memory tickling my conscience, but just out of reach, it finally hit me: I am Simon. As in mySimon, the guy from Superbowl commercials of web bubble #1.
Take a look at these two:
Somehow not as threatening as the name ImpendingFate implies...