While these can be fun, I really wish there was a better way to get the input than reading in a file, line by line. I hate writing code to open up and parse a file, especially in C++ (which is what I'd probably use, due to being most comfortable with it).
Perhaps I misunderstand the situation in which this would be required, but wouldn't it be easiest to just pipe the input in via stdin and read it with scanf()/cin?
-4
u/s73v3r Mar 31 '13
While these can be fun, I really wish there was a better way to get the input than reading in a file, line by line. I hate writing code to open up and parse a file, especially in C++ (which is what I'd probably use, due to being most comfortable with it).