Difference between Visual .net 2003 and Visual C++ 6.0

(Thanks to Prof Clark)

The following codes work in Visual .net 2003
for(int x=0;x<10;x++)
cout<<"Dude!"<<endl;
for(int x=0;x<10;x++)
cout<<"Sweet!"<<endl;
But not in Visual C++ 6.0.

A simple solution for them is to include the following #define near the top of any code having for loops:

#define for if(0);else for

see http://support.microsoft.com/default.aspx?scid=kb;EN-US;167748 for details.