Il est préférable d'utiliser la classe de chaînes de caractères C++ plutôt que l'ancien style de chaînes de caractères C, la vie serait beaucoup plus facile.
si vous disposez d'une chaîne de style ancien, vous pouvez la transformer en une classe de chaîne de caractères
char greeting[6] = {'H', 'e', 'l', 'l', 'o', '\0'};
cout<<greeting + "and there \n"; //will not compile because concat does \n not work on old C style string
string trueString = string (greeting);
cout << trueString + "and there \n"; // compiles fine
cout << trueString + 'c'; // this will be fine too. if one of the operand if C++ string, this will work too