error C2297: '<<' : illegal, right operand has type 'double'

Posted by Gopal Sharma on Stack Overflow See other posts from Stack Overflow or by Gopal Sharma
Published on 2011-03-15T07:10:02Z Indexed on 2011/03/15 8:10 UTC
Read the original article Hit count: 261

Filed under:
string mesag="";
mesag="aDoubleArray value at 0------->"<<aDoubleArray[0]<<"   aDoubleArray value at 1 is "<<aDoubleArray[1];
addLog(AMR_LT_WARN, mesag);// this part not working 
addLog(AMR_LT_WARN, "this works well");

i dont know anythng about c++ just want to print aDoubleArray values to log file but it throws error C2297: '<<' : illegal, right operand has type 'double'

© Stack Overflow or respective owner

Related posts about c++