Hello im new to the board, i have been programming in c++ for some time now, at least from what i have taught myself.
Anyways the point of this post is when you are writing code i know it is good practice to indent and make your code as readable as possible and to also comment your code, what i would like to know is the following :
1. Is it best to define variables you will be using in your code at the begining of the code, or slightly before there use, or some other variation?
2. When declaring functions is it best to have a prototype at the begining of your code and the actual function at the bottom, or just write the function at the begining of the code?
3. When writing a class, is it required / good practice, to include a destructor?