Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Concatenate Two String using Dynamic Constructors (http://www.go4expert.com/forums/concatenate-string-using-dynamic-t22188/)

realtime.funda 23May2010 17:39

Concatenate Two String using Dynamic Constructors
 
Hi every1 there
Can anyone provide me code for Using Dynamic Constructors write a C++ program to concatenate two given strings.

Thanx in advance..

xpi0t0s 24May2010 17:56

Re: Concatenate Two String using Dynamic Constructors
 
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.

bluecoder 27May2010 00:59

Re: Concatenate Two String using Dynamic Constructors
 
adding two string will do ?
Code:

string s1, s2 ,s3 ;
s1 = s2 + s3;            //conconate string s2 and string 3 to string s1.


xpi0t0s 27May2010 12:21

Re: Concatenate Two String using Dynamic Constructors
 
Isn't that what I said?
Quote:

...use a string object and do str1+str2


All times are GMT +5.5. The time now is 05:24.