Having been previously learning C I have recently swapped to C++.

What i've noticed is that in C the tendancy was to declare variables at the top of the program, in the book i'm reading on C++ (Accelerated C++ -Practical Programming by Example) they seem to always declare their variables the line before they are used.

Is it bad to declare variables in the C-style IE. all of them at the top when programming in C++?