Nov. 20th, 2003

miraje: (Default)
I have to write a program that codes or decodes morse code (depending on which choice the user wants). I'm having some issues with the morse to alphanumeric conversion. The program I wrote reads the code from a file and then spits out the alphanumeric equivalent on the screen. It compiles great, but when I try to run the morse code through it, it prints nothing. So here's my question: why isn't the program reading the data in properly?

This is the code I want to read in:

.- -... -.-.
.---- ..--- ...--
.... . .-.. .-.. ---
.--- . ..-. ..-.

Each individual letter is separated by a space.

Here's the C++ code )
miraje: (Default)
I'm a cousin! Yep, that's right, cousin #13 (it's a MUCH higher number if you figure by-marriage cousins and removed cousins into it) came into the world today, and he's the fourth boy. I think it's kind of cheap, though, that they emailed me to tell me about it and then didn't mention what his name was. So for the time being, we'll just call him 13.

Yay for having a bigger family. Nay for feeling that much older! I'm going to be 37 by the time this kid graduates from high school. There's no way I'll be able to get to know him like I have with my older cousins. It's a shame, because I really do place a pretty high value on family. Being the oldest kid in the family sometimes isn't what it's cracked up to be...although I do love how my grandparents and I had our own little secret things that they never did with the other grandkids. I've also had the pleasure of knowing many of our older relatives much longer and have been able to be closer to them. My great grandfather died almost a month ago, and this child will never be able to meet him. My great great grandmother died in the early 1990s, and I'm almost completely sure that my sister and I were the only two to meet her. Actually, we lost several grandparents around that same time that none of these young kids will ever know. Wow. I've never really thought about that before now.

Profile

miraje: (Default)
miraje

February 2010

S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags