As the title implies, I'm writing a pretty basic program to explore some of what I know.
It's a simple morse translator in C#, my question arises around this last issue I have with it. I'm in the process of writing the converter from Morse to English
Line 273 is where the error occurs. C# Express is telling me I'm trying to implicitly convert from string to a bool, anyone mind helping me with a different way to do this?
Morse-code you say? This video showcases using Emacs and SLIME to write such a trivial morse-code conversion utility(mostly to demonstrate SLIME's functionality): http://common-lisp.net/project/movies/movies/slime.mov
A lot of it is spacing and the switch statements. I'm learning on my own without classes, so I'm certain there are better ways, just wanted to put some of my knowledge to use
Name:
Anonymous2012-01-03 0:12
That is actually a nice program, with some good ideas I actually never tried to use (specifically the Clipboard stuff).
Try to put yourself a challenge later, like making it in less than 300 lines, or doing a basic GUI for it.
I think the string concatenation you are doing is considered harmful, so get a basic grab of how the String class works and try to do the same thing using it instead of the "+=", for example. It'll be good to expand a little your knowledge of the language and the framework. Also, you'll find MUCH MORE ENTERPRISE verbose crap around in a few months, so try to not be afraid.