anonymous
2010-02-20 20:34:45 UTC
Recently I was told that my code was, well, quite frankly "ugly". I believe the person was referring to my methods of solving problems, because I know I use correct formatting in my code, like braces on their own line, always assigning a value to a variable after initialization, unless for some odd reason not to, spacing different logical sections of code, etc.
I guess I would like to know what I can read or study to learn how to write efficient functions, and algorithms in TRUE c++ ( I come across too many books that say "c++ programming" but are somewhere in between C/C++, and sometimes confuse my ideas about c++).
I realise to do things like this, higher mathematics comes into play, such as calculus, but I don't think that will be too much of a problem. I'm 17- any help will be greatly appreciated :).