C
Christophe Grimault
Hi all,
look at the following code:
//////////////////////////
for(int i = 0; i<10; i++)
cout << i;
for(int i = 0; i<20; i++)
cout << i;
//////////////////////////
It compiles and runs under gcc. However, when I give code like this to
somebody who tries to run it under MSVC++6, it seems complains about
redefinition of i, in the second loop...
Is there a compiler option to set for MSVC++6 to accept this ?
Thanks for any help.
CG
look at the following code:
//////////////////////////
for(int i = 0; i<10; i++)
cout << i;
for(int i = 0; i<20; i++)
cout << i;
//////////////////////////
It compiles and runs under gcc. However, when I give code like this to
somebody who tries to run it under MSVC++6, it seems complains about
redefinition of i, in the second loop...
Is there a compiler option to set for MSVC++6 to accept this ?
Thanks for any help.
CG