QUOTE(gabehabe @ 2 Aug, 2008 - 12:35 PM)

If you're working with C++ you could do this:
cpp
#include <string> // string header
using std::string; // or using namespace std;
//. . .
char a = 'D';
char b = 'O';
char c = 'C';
// now we use a STRING datatype to store it
string abc = a + b + c;
Except that
char is merely an integral type, so that will give a compiler error for attempting to assign a numerical value to a string
On the other hand, you could do this
cpp
char a = 'D';
char b = 'O';
char c = 'C';
string abc = string() + a + b + c;
the std::basic_string type provides an overloaded operator for char, to concatenate a single char to the end of a string. In this case, you're concatenating char
a to the end of a temporary, empty string, which then allows the subsequent characters to be added in the same manner