sorry if the title is not very clear, I'm not sure how to say that... I often lost much time debugging because of a stupid mistake like this one:
for(int i=0;i<10;i++)
{
...
for(int i=0;i<50;i++)
{
somearray[i]=x;
}
...
}
Because I like small variable names, I even don't know why it's possible to do that in c++ isn't it useless ? Is there a way to ask visual c++ to alert about this multiple declaration ?
Thanks