1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Concatenate Two String using Dynamic Constructors

Discussion in 'C' started by realtime.funda, May 23, 2010.

  1. realtime.funda

    realtime.funda New 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..
     
  2. xpi0t0s

    xpi0t0s 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.
     
  3. bluecoder

    bluecoder New Member

    adding two string will do ?
    Code:
    string s1, s2 ,s3 ;
    s1 = s2 + s3;            //conconate string s2 and string 3 to string s1.
    
     
  4. xpi0t0s

    xpi0t0s Mentor

    Isn't that what I said?
     

Share This Page