After long pause I'm forced to use C EDIT( Version C89) again. What really disturbs, the declaration of the variables at the beginning, which violates this C++ well-coding rule. The functions of customer are huge and the variable lists at the beginning of each function are nearly not manageable. Could one use scopes for this problem? Is it appropriate or a "hack"?
1st case. instead:
{//Beginning of the function
int i;
int Important=0;
using:
{//Beginning of the function
int Important=0;
//... code
{ int i; for (i=0,... } //use i in close scope
2nd case instead:
{//Beginning of the function
int i;
// many other var definitions
if ( !initialized ) return;
using:
{//Beginning of the function
{if ( !initialized ) return; ... other checks}
int i;
// many other var definitions