Thread: help?? please

  1. #1
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732

    help?? please

    hello guys i just wanted know few fucntion name which will do me the following jobs
    1. is there any fucntion to rename an given file like in C we have rename function under stdio.h?

    2. and againn any fucntion to reallocate the memory like in C realloc we use

    any reply would be appriciated

    ssharish2005

  2. #2
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    i made qucik search on the board. it gave me few details telling me that can use rename to rename a file as cstdio is part of a c++ standard. but what about the reallocating the memory

    ssharish2005

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    113
    No,there is no equivalent c++ equivalent to realloc because class object have special problem if we try to reallocate them

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    There is no c++ equivalent for realloc, in the same way that malloc->new and free->delete
    But then containers like vector make the need for such things less of a problem.

  5. #5
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    thax very much Salem, Vaibhav.

    ssharish2005

Popular pages Recent additions subscribe to a feed