Thursday, October 21, 2010

error: invalid operands of types ‘const char

code.cpp:126: error: invalid operands of types ‘const char [5]’ and ‘const char [2]’ to binary ‘operator+’

message = string("DATA" + "\n");

to

message = string("DATA\n");

No comments:

Post a Comment