The following fails with the error prog.cpp:5:13: error: invalid conversion from ‘char’ to ‘const char*’
prog.cpp:5:13: error: invalid conversion from ‘char’ to ‘const char*’
int main() { char d = \'d\'; std::s
y += d;
I would use += operator instead of named functions.
+=