Try just using strcat. Or alternatively, my preferred method is to do it myself, or use the string class:
Code:#include <iostream> #include <string> using std::cout; using std::string; void main() { string x; x = "First "; x += "Second "; x += "Third"; cout << x << endl; }




Reply With Quote