Concatenate Two String using Dynamic Constructors

Newbie Member
23May2010,17:39   #1
realtime.funda's Avatar
Hi every1 there
Can anyone provide me code for Using Dynamic Constructors write a C++ program to concatenate two given strings.

Thanx in advance..
Mentor
24May2010,17:56   #2
xpi0t0s's Avatar
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.
Go4Expert Member
27May2010,00:59   #3
bluecoder's Avatar
adding two string will do ?
Code:
string s1, s2 ,s3 ;
s1 = s2 + s3;            //conconate string s2 and string 3 to string s1.
Mentor
27May2010,12:21   #4
xpi0t0s's Avatar
Isn't that what I said?
Quote:
...use a string object and do str1+str2