Originally posted by Martin Gühmann
That's a good question, and in fact the is a difference. Everything within the braces following the if are under the condition of the if. If the following is not included within braces, only the statement directly following is conditioned by the if.
Of course for readibility you would only indent the code dependent on the if.
That's a good question, and in fact the is a difference. Everything within the braces following the if are under the condition of the if. If the following is not included within braces, only the statement directly following is conditioned by the if.
Of course for readibility you would only indent the code dependent on the if.
And the first brace was in the original code on the line start. And should also be there if you give it a new line like in the rest of the file.
Also I notice Unitdata.cpp has A LOT of white space between functions. Is that just wordpad or should I clean it up a bit (for practice?)
thanks, I can almost see the finish line
Comment