My problem is that I get an error when trying to add hard-coded text, "334 "
before my decoded user input:
received = buf;
if(strncmp(buf, "334 ", 4) == 0){
decoding(received.c_str() + 4, strlen(buf + 4), buf);
received = "334 " + buf;
}
Here is the error I get:
invalid operands of types 'const char[5] and 'char[300] to binary 'operator+'