d:\microsoft visual studio\myprojects\int\int1.cpp(13) : error c2440: 'initializing' : cannot convert from 'class std::basic_string <char,struct std::char_traits <char> ,class std::allocator <char> > ' to 'char []' no user-defined-conversion operator available that can perform this conversion, or the operator cannot be called d:\microsoft visual studio\myprojects\int\int1.cpp(14) : error c2440: 'initializing' : cannot convert from 'class std::basic_string <char,struct std::char_traits <char> ,class std::allocator <char> > ' to 'char []' no user-defined-conversion operator available that can perform this conversion, or the operator cannot be called error EXECuting cl.exe.
发表于:2008-01-21 16:12:534楼 得分:0
回复3楼的,还是不行!错误信息如下 d:\microsoft visual studio\myprojects\int\int1.cpp(13) : error c2440: 'initializing' : cannot convert from 'const char *' to 'char []' there are no conversions to array types, although there are conversions to references or pointers to arrays d:\microsoft visual studio\myprojects\int\int1.cpp(14) : error c2440: 'initializing' : cannot convert from 'const char *' to 'char []' there are no conversions to array types, although there are conversions to references or pointers to arrays error EXECuting cl.exe.