Concatenate Two String using Dynamic Constructors

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

  1. realtime.funda

    realtime.funda New Member

    Joined:
    May 23, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    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

    Joined:
    Mar 11, 2010
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    0
    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

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    Isn't that what I said?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice