Jun 10, 2010 at 12:37am UTC
Hello,
How do I split a line of code so that it is better readable? Thank you!
Jun 10, 2010 at 12:57am UTC
Uhm... By splitting it? Sorry, either I don't understand what you're asking, or your question is it's own answer.
Jun 10, 2010 at 1:19am UTC
C++ programs are stream based not line based. You can split them wherever you have white-space (not in a literal) and the compiler won't care.
Jun 10, 2010 at 1:24am UTC
Google around "C++ style guides" and the like.
Jun 10, 2010 at 8:02am UTC
Oh sorry, that was a stupid question. I should have given it more thought. I forgot, that in C++ you can just continue in the new line without problems.