Here's the normal layout I use (changed as needed, but pretty standard): Help with Code Tags C++ Syntax ( Toggle Plain Text ) // #include statements go here // "using
namespace std" (if desired) here // #define statements here // global variables here // function declarations here int main ( ) { // code, ...