New at c++.Talking about style seems right?

}else{
if it works for you, whatever, but I can't begin to tell what brackets go with what blocks of code in this entire program. This is a touchy subject, though.

I prefer all variables up front, not 'on demand' eg lines 78 & 90. Also personal preferences on that, no big deal.

you may be mixing 2 languages (variable final, unless that word is shared in both languages?)


All in all, it looks pretty good.
Last edited on
PLEASE stop making multiple topics on the same subject. You've already been given answers in your other posts.

Duplicate posts:

http://www.cplusplus.com/forum/beginner/264041/

http://www.cplusplus.com/forum/beginner/264044/

Style is part of the concept of readability.

thisisnotveryeasytoreadandunderstandatabriefglance.

I personally find your brace style very hard to read and understand; if you find that style easy to read, fine.

Is this what your instructor says is a good style? *Ouch.*
Topic archived. No new replies allowed.