E:\myUG\startup\exam1\exam1.cpp(264) : error C2078: too many initializers
E:\myUG\startup\exam1\exam1.cpp(281) : error C2065: 'MY_LONG' : undeclared identifier
E:\myUG\startup\exam1\exam1.cpp(281) : error C2440: '=' : cannot convert from 'int' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
E:\myUG\startup\exam1\exam1.cpp(284) : error C2065: 'sprintf' : undeclared identifier
E:\myUG\startup\exam1\exam1.cpp(286) : error C2065: 'MY_WIDTH' : undeclared identifier
E:\myUG\startup\exam1\exam1.cpp(286) : error C2440: '=' : cannot convert from 'int' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
E:\myUG\startup\exam1\exam1.cpp(294) : error C2065: 'MY_HEIGHT' : undeclared identifier
E:\myUG\startup\exam1\exam1.cpp(294) : error C2440: '=' : cannot convert from 'int' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
在创建长方体的时候,还没有在construct中初始化的时候编译出现的问题?
可否赐教,谢谢