In Visual Studio 2010, for a loop's initialization variable is not available out of for loop scope, unlike Visual C++ 6.0. Whenever we compile old codes (generated in VC++ 6.0) using newest version, it annoys us. Then, take easy, and change project option to release your blood pressure.
Go to "Project property pages - C/C++ - Language - Force Conformance in For Loop Scope", and select "No (/Zc:forScope-)".
For more information, "http://msdn.microsoft.com/en-us/library/84wcsx8x.aspx".
Subscribe to:
Post Comments (Atom)
-
char path[_MAX_PATH]; const char* varName = "[system environment variable name]"; size_t len; getenv_s(&len, path, 80, varName...
-
-. A-priori reference variable has no unit (unitless). It is typically 1.0 or can be a different value for scaling. -. Weight is determ...
-
int decNum = 123456; char hexNum[16]; // decimal number to hexadecimal number sprintf_s(hexNum, 16, "%X", decNum); printf("%d...
No comments:
Post a Comment