4 ms·
It could be 1 line. sloc doesn't mean much for C++ unless the code is sanely formatted. E.g. an if/else should be at least 2 lines, usually 4. Edit: That sa
by adamtj 17y ago
It could be 1 line. sloc doesn't mean much for C++ unless the code is sanely formatted. E.g. an if/else should be at least 2 lines, usually 4.
Edit: That said, I'm still impressed.
- houseabsolute 17y agoThis is a sight more readable than some much more sanely formatted C++ programs I've read. What I've learned from this that it's often the simplicity of the program that's more important than the formatting. (Although formatting is of course still important and anyone who inflicts code like this on their coworkers doesn't reach my standard of "decent human being.")
- Luc 17y agoThe listing is contrained to 72 columns width, so it really couldn't be one line.