1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

about the strcpy,strlen functions in cpp

Discussion in 'C' started by saivasavi, Oct 16, 2007.

  1. saivasavi

    saivasavi New Member

    Joined:
    Oct 15, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Could you please tell me how to write the functions of strcopy,string length,string append,string delete without using strlen,strcpy() functions?
     
  2. seeguna

    seeguna New Member

    Joined:
    Jun 20, 2007
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Technical Consultant
    Location:
    Chennai
    Send ur coding........
    I will correct the errors....

    Tips to solve ur problem is "In the input character array ,count the no.of characters one by one, copy it character by character........"
     
  3. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    You can't delete a string unless it's dynamically allocated, you can only make it empty.
     

Share This Page