Quote:
Originally posted by charliex
which is the best approach or is the correct way of scoping, is academic since VC doesn't support the former.
|
Actually, VC (or at least VC 6 and VC.NET) support the:
Quote:
for( int i = 0; i < foo; i++ ) {
|
style of variable declarations. I've never run into trouble with either compiler, or any other compiler I've used (g++ and several oddball UNIX compilers).
The only instance of trouble I'd see is if you were running it through a C instead of C++ compiler - but then you'd get a lot more issues.