G
Gary Wessle
Hi
any idea why I am getting something like
main.cpp:177: error: invalid operands of types ‘const char [11]’ and ‘const char [8]’ to binary ‘operator+’
when trying to compile something like
int main(int argc, char* argv[])
{
string a = ".........." + ".......";
cout << a << endl;
}
how can I solve this, I have few lines and use + to concatenate them
together.
thanks
any idea why I am getting something like
main.cpp:177: error: invalid operands of types ‘const char [11]’ and ‘const char [8]’ to binary ‘operator+’
when trying to compile something like
int main(int argc, char* argv[])
{
string a = ".........." + ".......";
cout << a << endl;
}
how can I solve this, I have few lines and use + to concatenate them
together.
thanks