Concatenate Two String using Dynamic Constructors

realtime.funda's Avatar, Join Date: May 2010
Newbie Member
Hi every1 there
Can anyone provide me code for Using Dynamic Constructors write a C++ program to concatenate two given strings.

Thanx in advance..
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Why would you want to be so complicated? If you don't know how to determine if a string is a palindrome then your skills are *waaaaaay* short to be doing rocket science like this. Just use strcat like the rest of the planet does, or use a string object and do str1+str2.
0
bluecoder's Avatar
Go4Expert Member
adding two string will do ?
Code:
string s1, s2 ,s3 ;
s1 = s2 + s3;            //conconate string s2 and string 3 to string s1.
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Isn't that what I said?
Quote:
...use a string object and do str1+str2